Skip to content

Commit

Permalink
fix: do not add 104 to the history length (electron#23301)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Apr 27, 2020
1 parent abe5cf3 commit 7377bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/renderer/window-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {}
Expand Down

0 comments on commit 7377bb3

Please sign in to comment.