mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
40b9c62693
commit
e24522b75d
8 changed files with 62 additions and 62 deletions
|
|
@ -2,7 +2,7 @@ import {fetchSyncPost} from "../util/fetch";
|
|||
import {App} from "../index";
|
||||
import {Plugin} from "./index";
|
||||
/// #if !MOBILE
|
||||
import {exportLayout, resizeTopBar} from "../layout/util";
|
||||
import {exportLayout, resizeTopBar, saveLayout} from "../layout/util";
|
||||
/// #endif
|
||||
import {API} from "./API";
|
||||
import {getFrontend, isMobile, isWindow} from "../util/functions";
|
||||
|
|
@ -80,13 +80,6 @@ export const loadPlugin = async (app: App, item: IPluginData) => {
|
|||
styleElement.textContent = item.css;
|
||||
document.head.append(styleElement);
|
||||
afterLoadPlugin(plugin);
|
||||
/// #if !MOBILE
|
||||
exportLayout({
|
||||
reload: false,
|
||||
onlyData: false,
|
||||
errorExit: false
|
||||
});
|
||||
/// #endif
|
||||
return plugin;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue