mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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 <joel.charles91@gmail.com> * fix: lint error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user