mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
fix(electron): remove blocksuite dep
This commit is contained in:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user