Hack to remove onbeforeunload popup

This commit is contained in:
yflory 2018-02-22 10:16:33 +01:00
parent c34161a988
commit 480b499d7b
1 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,10 @@ config = {
"onAppReady": function(evt) { console.log("in onAppReady"); },
}
};
window.onbeforeunload = null;
window.onbeforeunload = function () {
var ifr = document.getElementsByTagName('iframe')[0];
if (ifr) { ifr.remove(); }
};
var docEditor = new DocsAPI.DocEditor("placeholder", config);