Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

pengx17741ff2379ea1
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);
},
},
{