* fix: allow pages to override window.history.length * Update lib/renderer/window-setup.ts Co-Authored-By: magne4000 <[email protected]> * fix: lint error
@@ -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) {