fix(electron): reload view in tab context menu issue (#7702)

fix PD-1524
This commit is contained in:
pengx17 committed 2024-08-05 03:11:50 +00:00
1 parent 9307acf0de
commit 741ff2379e
1 file changed
+1 -3
@@ -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);
},
},
{