Skip to content

Commit

Permalink
report final iframe.src in log output
Browse files Browse the repository at this point in the history
  • Loading branch information
humbletim committed Sep 1, 2019
1 parent fac3dd9 commit b581c15
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/realitytabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,11 @@
}
}

const _drawOk = () => {
console.log('reality tab load ok: ' + u);
const _drawOk = (src) => {
console.log('reality tab load ok: ' + src);
};
const _drawFail = () => {
console.log('reality tab load error: ' + u);
const _drawFail = (src) => {
console.log('reality tab load error: ' + src);
};

const iframe = document.createElement('iframe');
Expand All @@ -617,11 +617,11 @@
}
})();
if (contentDocument) {
_drawOk();
_drawOk(iframe.src);

// scene.background = null;
} else {
_drawFail();
_drawFail(iframe.src || u);

_closeTab(tab);

Expand Down

0 comments on commit b581c15

Please sign in to comment.