siyuan/app/src/window
Jeffrey Chen bcdef64d0f
Improve onDataChanged method (#16472)
* 🐛 Improve onDataChanged method

fix https://github.com/siyuan-note/siyuan/pull/16244

重构、修复插件重启逻辑

重构

比如插件在 onload() 中插入了图标,uninstall 会把图标删除,afterLoadPlugin 又不能执行 onload() 把图标加回来

使用 getElementById

先加载插件样式

避免插入重复的样式

改进插件样式插入位置

* reloadPlugin
2025-12-02 09:57:50 +08:00
..
closeWin.ts 🎨 https://github.com/siyuan-note/siyuan/issues/9368 setProxy 2023-10-08 23:41:10 +08:00
index.ts Improve onDataChanged method (#16472) 2025-12-02 09:57:50 +08:00
init.ts 🎨 https://github.com/siyuan-note/siyuan/issues/15177 2025-06-29 23:07:26 +08:00
onWindowsMsg.ts 🎨 https://github.com/siyuan-note/siyuan/issues/13878 2025-04-01 15:53:31 +08:00
openNewWindow.ts 🎨 https://github.com/siyuan-note/siyuan/issues/14894 2025-05-24 17:41:06 +08:00
setHeader.ts 🎨 https://github.com/siyuan-note/siyuan/issues/13878 2025-04-01 15:00:09 +08:00