Skip to content

Commit 9fa4180

Browse files
committed
[skip ci] minors
1 parent f747f45 commit 9fa4180

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

services/static-webserver/client/source/class/osparc/data/model/Study.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ qx.Class.define("osparc.data.model.Study", {
319319

320320
getIcon: function(studyData) {
321321
let icon = "";
322-
if (this.getUiMode() === "standalone") {
322+
if (this.getUiMode(studyData) === "standalone") {
323323
return "@FontAwesome5Solid/user/14";
324-
} else if (this.getUiMode() === "workbench") {
324+
} else if (this.getUiMode(studyData) === "workbench") {
325325
return "@FontAwesome5Solid/globe/14";
326326
}
327327
return icon;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,12 @@ qx.Class.define("osparc.widget.PersistentIframe", {
299299
},
300300

301301
__handleIframeMessage: function(data, nodeId) {
302-
if (data["type"] && data["message"]) {
302+
if (data["type"]) {
303303
switch (data["type"]) {
304304
case "theme": {
305305
// switch theme driven by the iframe
306306
const message = data["message"];
307-
if (message.includes("osparc;theme=")) {
307+
if (message && message.includes("osparc;theme=")) {
308308
const themeName = message.replace("osparc;theme=", "");
309309
const validThemes = osparc.ui.switch.ThemeSwitcher.getValidThemes();
310310
const themeFound = validThemes.find(theme => theme.basename === themeName);

0 commit comments

Comments
 (0)