mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
e52fae7fe0
commit
2232cec2bf
2 changed files with 5 additions and 1 deletions
|
|
@ -64,6 +64,11 @@ const loadPluginJS = async (app: App, item: IPluginData) => {
|
|||
name: item.name,
|
||||
i18n: item.i18n
|
||||
});
|
||||
// https://github.com/siyuan-note/siyuan/issues/9943
|
||||
Object.defineProperty(plugin, "name", {
|
||||
value: item.name,
|
||||
writable: false,
|
||||
});
|
||||
app.plugins.push(plugin);
|
||||
try {
|
||||
await plugin.onload();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue