We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 630ccfc commit 50e6108Copy full SHA for 50e6108
packages/ide/src/client.ts
@@ -34,6 +34,12 @@ export abstract class IdeClient {
34
this.loadTime = time(2500);
35
36
let appWindow: Window | undefined;
37
+
38
+ window.addEventListener("beforeunload", (e) => {
39
+ e.preventDefault(); // FireFox
40
+ e.returnValue = ""; // Chrome
41
+ });
42
43
window.addEventListener("message", (event) => {
44
if (event.data === "app") {
45
appWindow = event.source as Window;
0 commit comments