mirror of https://github.com/xwiki-labs/cryptpad
Hack to remove onbeforeunload popup
This commit is contained in:
parent
c34161a988
commit
480b499d7b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue