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"); },
|
"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…
x
Reference in New Issue
Block a user