Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Object.defineProperties(window, {
},
onbeforeunload: {
enumerable: true,
writable: false,
writable: true,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should onunload be writable: true as well? L:50?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that onbeforeunload fixed this issue. I wouldn't touch onunload unless that was causing issues as well. Thanks for checking @nramirez!

value: null
}
})
Expand Down