diff --git a/package.json b/package.json index 78bb837677..26419213ae 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.4.0", + "electron": "32.0.1", "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 9cbf310e11..5b8fdd922f 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.4.0) + version: 2.1.2(electron@32.0.1) '@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.13.1)(path-to-regexp@6.2.2) '@syed_umair/electron-process-manager': specifier: 1.1.0 - version: 1.1.0(electron@31.4.0) + version: 1.1.0(electron@32.0.1) 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.4.0 - version: 31.4.0 + specifier: 32.0.1 + version: 32.0.1 electron-builder: specifier: 24.13.3 version: 24.13.3(electron-builder-squirrel-windows@24.13.3(dmg-builder@24.13.3)) @@ -3238,8 +3238,8 @@ packages: resolution: {integrity: sha512-1mNTwCfkolXl3kMf50yW3vE2lZj0y92P/HYWFBrb+v2S/pCka5mdwN3cagKm458A7NjndSwijynXgcLWRodsVg==} engines: {node: '>=8.0.0'} - electron@31.4.0: - resolution: {integrity: sha512-YTwKoAA+nrJMlI1TTHnIXLYWoQLKnhbkz0qxZcI7Hadcy0UaFMFs9xzwvH2MnrRpVJy7RKo49kVGuvSdRl8zMA==} + electron@32.0.1: + resolution: {integrity: sha512-5Hd5Jaf9niYVR2hZxoRd3gOrcxPOxQV1XPV5WaoSfT9jLJHFadhlKtuSDIk3U6rQZke+aC7GqPPAv55nWFCMsA==} engines: {node: '>= 12.20.55'} hasBin: true @@ -8175,9 +8175,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@electron/remote@2.1.2(electron@31.4.0)': + '@electron/remote@2.1.2(electron@32.0.1)': dependencies: - electron: 31.4.0 + electron: 32.0.1 '@electron/universal@1.5.1': dependencies: @@ -9103,9 +9103,9 @@ snapshots: mobx: 6.13.1 path-to-regexp: 6.2.2 - '@syed_umair/electron-process-manager@1.1.0(electron@31.4.0)': + '@syed_umair/electron-process-manager@1.1.0(electron@32.0.1)': dependencies: - electron: 31.4.0 + electron: 32.0.1 electron-process-reporter: 1.4.0 '@szmarczak/http-timer@4.0.6': @@ -11177,7 +11177,7 @@ snapshots: jsonfile: 4.0.0 mkdirp: 0.5.6 - electron@31.4.0: + electron@32.0.1: dependencies: '@electron/get': 2.0.3 '@types/node': 20.14.10 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(), }), ); }