mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 08:24:06 +01:00
This commit is contained in:
parent
bcdef64d0f
commit
4433372bee
3 changed files with 19 additions and 34 deletions
|
|
@ -8,7 +8,7 @@ import {Constants} from "../constants";
|
|||
import {setStorageVal} from "../protyle/util/compatibility";
|
||||
import {getAllEditor} from "../layout/getAll";
|
||||
|
||||
export const uninstall = (app: App, name: string, isUninstall: boolean, keepCSS: boolean = false) => {
|
||||
export const uninstall = (app: App, name: string, isUninstall: boolean) => {
|
||||
app.plugins.find((plugin: Plugin, index) => {
|
||||
if (plugin.name === name) {
|
||||
try {
|
||||
|
|
@ -75,9 +75,7 @@ export const uninstall = (app: App, name: string, isUninstall: boolean, keepCSS:
|
|||
editor.protyle.toolbar.update(editor.protyle);
|
||||
});
|
||||
// rm style
|
||||
if (!keepCSS) {
|
||||
document.getElementById("pluginsStyle" + name)?.remove();
|
||||
}
|
||||
document.getElementById("pluginsStyle" + name)?.remove();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue