From 0bcfae752eb165e9cc59b515f2ac1603dd53c1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Charles?= Date: Mon, 16 Dec 2019 03:14:28 +0100 Subject: [PATCH] feat: allow pages to override window.history.length (#17742) * fix: allow pages to override window.history.length * Update lib/renderer/window-setup.ts Co-Authored-By: magne4000 * fix: lint error --- lib/renderer/window-setup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/renderer/window-setup.ts b/lib/renderer/window-setup.ts index 813ecc5e3137..f8d5b6f3ae2b 100644 --- a/lib/renderer/window-setup.ts +++ b/lib/renderer/window-setup.ts @@ -242,7 +242,8 @@ export const windowSetup = ( Object.defineProperty(window.history, 'length', { get: function () { return ipcRendererInternal.sendSync('ELECTRON_NAVIGATION_CONTROLLER_LENGTH') - } + }, + set () {} }) if (guestInstanceId != null) {