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 { AsyncCall } from 'async-call-rpc';
|
||||||
|
|
||||||
import type { HelperToMain, MainToHelper } from '../shared/type';
|
import type { HelperToMain, MainToHelper } from '../shared/type';
|
||||||
@@ -6,7 +5,9 @@ import { exposed } from './provide';
|
|||||||
|
|
||||||
const helperToMainServer: HelperToMain = {
|
const helperToMainServer: HelperToMain = {
|
||||||
getMeta: () => {
|
getMeta: () => {
|
||||||
assertExists(exposed);
|
if (!exposed) {
|
||||||
|
throw new Error('Helper is not initialized correctly');
|
||||||
|
}
|
||||||
return exposed;
|
return exposed;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user