Skip to content

Commit 032eec9

Browse files
committed
Fixed a regression caused by DFL-1704 where the pause icon on Scripts wasn't removed when not stopped.
1 parent 165def5 commit 032eec9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ui-scripts/tab.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ var TabBase = new function()
4848
this.set_badge = function(type)
4949
{
5050
var tab = this._get_top_tab_element();
51-
var badge = tab ? tab.querySelector(".badge") : null;
52-
if (badge)
53-
{
54-
badge.addClass(type || "");
55-
}
51+
var badge = tab && tab.querySelector(".badge");
52+
if (badge && type)
53+
badge.addClass(type);
54+
else
55+
badge.className = "badge";
5656
};
5757

5858
this.set_legend_info = function(text)

0 commit comments

Comments
 (0)