summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/99_main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 1d046d161..c13faa936 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -583,6 +583,7 @@ delete Intl.v8BreakIterator;
defineEventHandler(window, "error");
defineEventHandler(window, "load");
+ defineEventHandler(window, "beforeunload");
defineEventHandler(window, "unload");
const isUnloadDispatched = SymbolFor("isUnloadDispatched");
// Stores the flag for checking whether unload is dispatched or not.