Browse Source

fix: do not add 104 to the history length (#23301)

Samuel Attard 5 years ago
parent
commit
7377bb3736
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/renderer/window-setup.ts

+ 1 - 1
lib/renderer/window-setup.ts

@@ -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 () {}