fix: electron cannot be started in Windows (#2784)

This commit is contained in:
JimmFly authored and GitHub committed 2023-06-15 06:16:27 +00:00
1 parent 9fd4818d81
commit 7eaff644e3
5 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ export function registerPlugin() {
'./bookmark-block/index.mjs'
);
logger.info('bookmark plugin path:', bookmarkPluginPath);
import(bookmarkPluginPath);
import('file://' + bookmarkPluginPath);
let dispose: () => void = () => {
// noop
};
@@ -34,7 +34,7 @@ import('@toeverything/plugin-infra/manager')
console.log('import bookmark plugin', bookmarkPluginPath);
import(bookmarkPluginPath).catch(console.log);
import('file://' + bookmarkPluginPath).catch(console.log);
rootStore.sub(affinePluginsAtom, () => {
const plugins = rootStore.get(affinePluginsAtom);
Object.values(plugins).forEach(plugin => {