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): remove blocksuite dep

forehalo126d576c3e65
diff --git a/packages/frontend/apps/electron/src/helper/main-rpc.ts b/packages/frontend/apps/electron/src/helper/main-rpc.ts
index 419970f296..59be05958f 100644
--- a/packages/frontend/apps/electron/src/helper/main-rpc.ts
+++ b/packages/frontend/apps/electron/src/helper/main-rpc.ts
@@ -1,4 +1,3 @@
-import { assertExists } from '@blocksuite/affine/global/utils';
import { AsyncCall } from 'async-call-rpc';
import type { HelperToMain, MainToHelper } from '../shared/type';
@@ -6,7 +5,9 @@ import { exposed } from './provide';
const helperToMainServer: HelperToMain = {
getMeta: () => {
- assertExists(exposed);
+ if (!exposed) {
+ throw new Error('Helper is not initialized correctly');
+ }
return exposed;
},
};