Skip to content

Commit 2f9811b

Browse files
committed
only if it changed
1 parent 449853e commit 2f9811b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,9 @@ qx.Class.define("osparc.widget.PersistentIframe", {
297297
const themeName = message.replace("osparc;theme=", "");
298298
const validThemes = osparc.ui.switch.ThemeSwitcher.getValidThemes();
299299
const themeFound = validThemes.find(theme => theme.basename === themeName);
300-
if (themeFound) {
301-
qx.theme.manager.Meta.getInstance().setTheme(themeFound);
300+
const themeManager = qx.theme.manager.Meta.getInstance();
301+
if (themeFound !== themeManager.getTheme()) {
302+
themeManager.setTheme(themeFound);
302303
}
303304
}
304305
}

0 commit comments

Comments
 (0)