mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -5,7 +5,7 @@ import {Plugin} from "./index";
|
||||
import {exportLayout} from "../layout/util";
|
||||
/// #endif
|
||||
import {API} from "./API";
|
||||
import {isMobile, isWindow} from "../util/functions";
|
||||
import {getFrontend, isMobile, isWindow} from "../util/functions";
|
||||
|
||||
const getObject = (key: string) => {
|
||||
const api = {
|
||||
@@ -20,7 +20,7 @@ const runCode = (code: string, sourceURL: string) => {
|
||||
};
|
||||
|
||||
export const loadPlugins = async (app: App) => {
|
||||
const response = await fetchSyncPost("/api/petal/loadPetals");
|
||||
const response = await fetchSyncPost("/api/petal/loadPetals", {frontend: getFrontend()});
|
||||
let css = "";
|
||||
// 为加快启动速度,不进行 await
|
||||
response.data.forEach((item: IPluginData) => {
|
||||
|
||||
Reference in New Issue
Block a user