I think this will work?
This commit is contained in:
parent
872f46798a
commit
d5ecbaadac
1 changed files with 6 additions and 1 deletions
|
|
@ -53,7 +53,12 @@
|
|||
}
|
||||
iframe.style.pointerEvents = "auto";
|
||||
iframe.classList.add("proxy-frame");
|
||||
document.body.appendChild(iframe);
|
||||
try {
|
||||
document.body.appendChild(iframe);
|
||||
} catch {
|
||||
window.open(iframe.src);
|
||||
}
|
||||
|
||||
iframeURLChange(iframe, (newURL) => updateTopbarURL(preference, newURL));
|
||||
const boundIFrameLoad = iframeLoad.bind(null, iframe, loadingContent, topbar, closeButton);
|
||||
iframe.addEventListener("load", boundIFrameLoad);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue