Skip to content

Commit 96c102f

Browse files
committed
native crx: fix dispatch events NW
1 parent d18b72b commit 96c102f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/api_nw_window.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ function updateAppWindowZoom(old_level, new_level) {
745745
function onClose(user_force) {
746746
if (!currentNWWindow)
747747
return;
748-
dispatchEventNW("nw.Window.onClose", [user_force], {instanceId: currentWidgetRoutingID});
748+
currentNWWindow.onClose.dispatchNW({instanceId: currentWidgetRoutingID}, user_force);
749749
}
750750

751751
function get_nw() {

0 commit comments

Comments
 (0)