mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
♻️
This commit is contained in:
parent
47d06a6309
commit
ccfa915e80
1 changed files with 0 additions and 1 deletions
|
|
@ -44,7 +44,6 @@ const loadPluginJS = async (app: App, item: IPluginData) => {
|
||||||
const exportsObj: { [key: string]: any } = {};
|
const exportsObj: { [key: string]: any } = {};
|
||||||
const moduleObj = {exports: exportsObj};
|
const moduleObj = {exports: exportsObj};
|
||||||
try {
|
try {
|
||||||
debugger
|
|
||||||
runCode(item.js, "plugin:" + encodeURIComponent(item.name))(requireFunc, moduleObj, exportsObj);
|
runCode(item.js, "plugin:" + encodeURIComponent(item.name))(requireFunc, moduleObj, exportsObj);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(`plugin ${item.name} run error:`, e);
|
console.error(`plugin ${item.name} run error:`, e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue