Hack to remove onbeforeunload popup

pull/1/head
yflory 7 years ago
parent c34161a988
commit 480b499d7b

@ -30,7 +30,10 @@ config = {
"onAppReady": function(evt) { console.log("in onAppReady"); }, "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); var docEditor = new DocsAPI.DocEditor("placeholder", config);

Loading…
Cancel
Save