fix: replace legacy unload event listener cleanup with pagehide

This commit is contained in:
daboe01 committed 2026-08-27 19:28:31 +02:00
1 parent e107e2d804
commit 16beb1a86c
1 file changed
+1 -1
+1 -1
View File
@@ -483,7 +483,7 @@ _CPPlatformWindowWillCloseNotification = @"_CPPlatformWindowWillCloseNotificatio
_DOMWindow.addEventListener("pagehide", function()
{
_DOMWindow.removeEventListener("unload", arguments.callee, NO);
_DOMWindow.removeEventListener("pagehide", arguments.callee, NO);
[self blurEvent:nil];
[self _notifyPlatformWindowWillClose];