Skip to content

Commit ac741b6

Browse files
committed
minor
1 parent bb07919 commit ac741b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/static-webserver/client/source/class/osparc/wrapper/BookACallIframe.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ qx.Class.define("osparc.wrapper.BookACallIframe", {
6363
'--osparc-text-color': colorManager.resolve("text"),
6464
'--osparc-primary': colorManager.resolve("product-color"),
6565
};
66+
const url = new URL(this.self().SERVICE_URL);
6667
iframe.contentWindow.postMessage({
6768
type: 'osparc-theme',
6869
theme
69-
}, "http://localhost:8000"); // targetOrigin = iframe origin
70+
}, url.origin); // targetOrigin = iframe origin
7071
},
7172
}
7273
});

0 commit comments

Comments
 (0)