mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-07 08:01:47 +01:00
🚨
This commit is contained in:
parent
813bd27fb3
commit
b6090f1bf3
5 changed files with 17 additions and 18 deletions
|
|
@ -28,7 +28,7 @@ export const loadPlugins = (app: App) => {
|
|||
console.error(`eval plugin ${item.name} error:`, e);
|
||||
return;
|
||||
}
|
||||
const pluginClass = (moduleObj.exports || exportsObj).default || moduleObj.exports
|
||||
const pluginClass = (moduleObj.exports || exportsObj).default || moduleObj.exports;
|
||||
if (typeof pluginClass !== "function") {
|
||||
console.error(`plugin ${item.name} has no export`);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue