mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 catch plugin load
This commit is contained in:
parent
6690084caa
commit
e7288185be
1 changed files with 5 additions and 1 deletions
|
|
@ -42,7 +42,11 @@ export const loadPlugins = (app: App) => {
|
||||||
i18n: item.i18n
|
i18n: item.i18n
|
||||||
});
|
});
|
||||||
app.plugins.push(plugin);
|
app.plugins.push(plugin);
|
||||||
plugin.onload();
|
try {
|
||||||
|
plugin.onload();
|
||||||
|
} catch (e) {
|
||||||
|
console.error(`plugin ${item.name} load error:`, e);
|
||||||
|
}
|
||||||
css += item.css || "" + "\n";
|
css += item.css || "" + "\n";
|
||||||
});
|
});
|
||||||
const styleElement = document.createElement("style");
|
const styleElement = document.createElement("style");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue