From 240476f22382519bb74c2da1fc7202c29e50b734 Mon Sep 17 00:00:00 2001 From: Connor Knabe Date: Fri, 4 Oct 2019 07:31:24 -0500 Subject: [PATCH] Fixes error this issue: Cannot assign to read only property 'onbeforeunload' of object '#' #1082 --- lib/preload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preload.js b/lib/preload.js index aff8448b..c55b76ea 100644 --- a/lib/preload.js +++ b/lib/preload.js @@ -52,7 +52,7 @@ Object.defineProperties(window, { }, onbeforeunload: { enumerable: true, - writable: false, + writable: true, value: null } })