Skip to content

Commit b468448

Browse files
committed
Fixed DFL-3627: Exception on canceling remote connection.
1 parent 0fd0ca0 commit b468448

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ui-scripts/tab.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ var TabBase = new function()
4949
{
5050
var tab = this._get_top_tab_element();
5151
var badge = tab && tab.querySelector(".badge");
52-
if (badge && type)
52+
if (!badge)
53+
return;
54+
55+
if (type)
5356
badge.addClass(type);
5457
else
5558
badge.className = "badge";

0 commit comments

Comments
 (0)