From b7f53d1610dcc0446a55f53dbd87b5254be3077c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 29 Jun 2024 16:00:33 +0530 Subject: [PATCH] Upgrade electron to '32.0.0-alpha.9' --- package.json | 2 +- pnpm-lock.yaml | 22 +++++++++++----------- src/webview/contextMenuBuilder.ts | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 5577801e5f..9b1a7d5473 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.2.1", + "electron": "32.0.0-alpha.9", "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 1a8e62ca7c..5669bf1912 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.2.1) + version: 2.1.2(electron@32.0.0-alpha.9) '@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.0)(path-to-regexp@6.2.2) '@syed_umair/electron-process-manager': specifier: 1.1.0 - version: 1.1.0(electron@31.2.1) + version: 1.1.0(electron@32.0.0-alpha.9) 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.2.1 - version: 31.2.1 + specifier: 32.0.0-alpha.9 + version: 32.0.0-alpha.9 electron-builder: specifier: 24.13.3 version: 24.13.3(electron-builder-squirrel-windows@24.13.3(dmg-builder@24.13.3)) @@ -3248,8 +3248,8 @@ packages: resolution: {integrity: sha512-1mNTwCfkolXl3kMf50yW3vE2lZj0y92P/HYWFBrb+v2S/pCka5mdwN3cagKm458A7NjndSwijynXgcLWRodsVg==} engines: {node: '>=8.0.0'} - electron@31.2.1: - resolution: {integrity: sha512-g3CLKjl4yuXt6VWm/KpgEjYYhFiCl19RgUn8lOC8zV/56ZXAS3+mqV4wWzicE/7vSYXs6GRO7vkYRwrwhX3Gaw==} + electron@32.0.0-alpha.9: + resolution: {integrity: sha512-xzRMWogPMBX7r/PR9lpq3qB92tUFpFGTEjtL0OTXnT+19+/xbSu67BhMWOyZYhXTrxVQNpirVs1taXFz3685Sw==} engines: {node: '>= 12.20.55'} hasBin: true @@ -8185,9 +8185,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@electron/remote@2.1.2(electron@31.2.1)': + '@electron/remote@2.1.2(electron@32.0.0-alpha.9)': dependencies: - electron: 31.2.1 + electron: 32.0.0-alpha.9 '@electron/universal@1.5.1': dependencies: @@ -9131,9 +9131,9 @@ snapshots: mobx: 6.13.0 path-to-regexp: 6.2.2 - '@syed_umair/electron-process-manager@1.1.0(electron@31.2.1)': + '@syed_umair/electron-process-manager@1.1.0(electron@32.0.0-alpha.9)': dependencies: - electron: 31.2.1 + electron: 32.0.0-alpha.9 electron-process-reporter: 1.4.0 '@szmarczak/http-timer@4.0.6': @@ -11201,7 +11201,7 @@ snapshots: jsonfile: 4.0.0 mkdirp: 0.5.6 - electron@31.2.1: + electron@32.0.0-alpha.9: 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(), }), ); }