mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
fix: do not add 104 to the history length (#23301)
This commit is contained in:
@@ -313,7 +313,7 @@ export const windowSetup = (
|
||||
};
|
||||
if (contextIsolationEnabled) internalContextBridge.overrideGlobalValueFromIsolatedWorld(['history', 'go'], window.history.go);
|
||||
|
||||
const getHistoryLength = () => ipcRendererInternal.sendSync('ELECTRON_NAVIGATION_CONTROLLER_LENGTH') + 104;
|
||||
const getHistoryLength = () => ipcRendererInternal.sendSync('ELECTRON_NAVIGATION_CONTROLLER_LENGTH');
|
||||
Object.defineProperty(window.history, 'length', {
|
||||
get: getHistoryLength,
|
||||
set () {}
|
||||
|
||||
Reference in New Issue
Block a user