From 741ff2379ea1ec33ebac66e7ead7ebf28805faba Mon Sep 17 00:00:00 2001 From: pengx17 Date: Mon, 5 Aug 2024 03:11:49 +0000 Subject: [PATCH] fix(electron): reload view in tab context menu issue (#7702) fix PD-1524 --- .../frontend/electron/src/main/windows-manager/tab-views.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/frontend/electron/src/main/windows-manager/tab-views.ts b/packages/frontend/electron/src/main/windows-manager/tab-views.ts index 3ab5c3277d..e937f801ce 100644 --- a/packages/frontend/electron/src/main/windows-manager/tab-views.ts +++ b/packages/frontend/electron/src/main/windows-manager/tab-views.ts @@ -1019,9 +1019,7 @@ export const showTabContextMenu = async (tabId: string, viewIndex: number) => { { label: 'Refresh tab', click: () => { - WebContentViewsManager.instance - .getViewById(tabId) - ?.webContents.reload(); + reloadView().catch(logger.error); }, }, {