diff --git a/package.json b/package.json index 52ddaaee1a..3f328c0ce7 100644 --- a/package.json +++ b/package.json @@ -163,7 +163,7 @@ "chalk": "5.3.0", "concurrently": "8.2.2", "cross-env": "7.0.3", - "electron": "31.1.0", + "electron": "32.0.0-alpha.5", "electron-builder": "24.13.3", "esbuild": "0.16.17", "esbuild-plugin-copy": "2.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fe747a2d55..ca94faf105 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,7 +43,7 @@ importers: version: 5.1.0 '@electron/remote': specifier: 2.1.2 - version: 2.1.2(electron@31.1.0) + version: 2.1.2(electron@32.0.0-alpha.5) '@emotion/react': specifier: 11.11.4 version: 11.11.4(@types/react@18.3.3)(react@18.3.1) @@ -73,7 +73,7 @@ importers: version: 7.4.0(history@5.3.0)(mobx@6.12.4)(path-to-regexp@6.2.2) '@syed_umair/electron-process-manager': specifier: 1.1.0 - version: 1.1.0(electron@31.1.0) + version: 1.1.0(electron@32.0.0-alpha.5) auto-launch: specifier: 5.0.6 version: 5.0.6 @@ -353,8 +353,8 @@ importers: specifier: 7.0.3 version: 7.0.3 electron: - specifier: 31.1.0 - version: 31.1.0 + specifier: 32.0.0-alpha.5 + version: 32.0.0-alpha.5 electron-builder: specifier: 24.13.3 version: 24.13.3(electron-builder-squirrel-windows@24.13.3(dmg-builder@24.13.3)) @@ -3252,8 +3252,8 @@ packages: resolution: {integrity: sha512-1mNTwCfkolXl3kMf50yW3vE2lZj0y92P/HYWFBrb+v2S/pCka5mdwN3cagKm458A7NjndSwijynXgcLWRodsVg==} engines: {node: '>=8.0.0'} - electron@31.1.0: - resolution: {integrity: sha512-TBOwqLxSxnx6+pH6GMri7R3JPH2AkuGJHfWZS0p1HsmN+Qr1T9b0IRJnnehSd/3NZAmAre4ft9Ljec7zjyKFJA==} + electron@32.0.0-alpha.5: + resolution: {integrity: sha512-bMUPIeQGDFACfR6zZUJjsRpILztTGxdV+ZiFtUoTyy3IsCTjcsvDz+r7PI2zrHonBnopsXrAgd49YUB8C13Mlg==} engines: {node: '>= 12.20.55'} hasBin: true @@ -8190,9 +8190,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@electron/remote@2.1.2(electron@31.1.0)': + '@electron/remote@2.1.2(electron@32.0.0-alpha.5)': dependencies: - electron: 31.1.0 + electron: 32.0.0-alpha.5 '@electron/universal@1.5.1': dependencies: @@ -9136,9 +9136,9 @@ snapshots: mobx: 6.12.4 path-to-regexp: 6.2.2 - '@syed_umair/electron-process-manager@1.1.0(electron@31.1.0)': + '@syed_umair/electron-process-manager@1.1.0(electron@32.0.0-alpha.5)': dependencies: - electron: 31.1.0 + electron: 32.0.0-alpha.5 electron-process-reporter: 1.4.0 '@szmarczak/http-timer@4.0.6': @@ -11215,7 +11215,7 @@ snapshots: jsonfile: 4.0.0 mkdirp: 0.5.6 - electron@31.1.0: + electron@32.0.0-alpha.5: dependencies: '@electron/get': 2.0.3 '@types/node': 20.14.9 diff --git a/src/webview/contextMenuBuilder.ts b/src/webview/contextMenuBuilder.ts index d686059633..92a246cf59 100644 --- a/src/webview/contextMenuBuilder.ts +++ b/src/webview/contextMenuBuilder.ts @@ -867,8 +867,8 @@ export class ContextMenuBuilder { new MenuItem({ label: this.stringTable.goBack(), accelerator: `${cmdOrCtrlShortcutKey()}+left`, - enabled: webContents.canGoBack(), - click: () => webContents.goBack(), + enabled: webContents.navigationHistory.canGoBack(), + click: () => webContents.navigationHistory.goBack(), }), ); } @@ -882,8 +882,8 @@ export class ContextMenuBuilder { new MenuItem({ label: this.stringTable.goForward(), accelerator: `${cmdOrCtrlShortcutKey()}+right`, - enabled: webContents.canGoForward(), - click: () => webContents.goForward(), + enabled: webContents.navigationHistory.canGoForward(), + click: () => webContents.navigationHistory.goForward(), }), ); }