Skip to content

Commit 3ef7413

Browse files
committed
Make sure the iframe is loaded and has a valid source
1 parent c612b5e commit 3ef7413

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ qx.Class.define("osparc.widget.PersistentIframe", {
284284
const iframe = this._getIframeElement();
285285
if (iframe) {
286286
const iframeDomEl = iframe.getDomElement();
287-
if (iframeDomEl) {
287+
const iframeSource = iframe.getSource();
288+
// Make sure the iframe is loaded and has a valid source
289+
if (iframeDomEl && iframeSource && iframeSource !== "about:blank") {
288290
window.addEventListener("message", message => {
289291
const data = message.data;
290292
if (data) {

0 commit comments

Comments
 (0)