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:
parent
6a03d3cc66
commit
0bcfae752e
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue