Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed May 16, 2023
1 parent 2750a1b commit 064013d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/config/bazaar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as path from "path";
/// #endif
import {isBrowser} from "../util/functions";
import {setStorageVal} from "../protyle/util/compatibility";
import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";
import {hasClosestByAttribute} from "../protyle/util/hasClosest";
import {Plugin} from "../plugin";
import {App} from "../index";
import {escapeAttr} from "../util/escape";
Expand Down
2 changes: 1 addition & 1 deletion app/src/layout/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {genUUID} from "../util/genID";
import {addResize, resizeTabs} from "./util";
/// #if MOBILE
// 检测移动端是否引入了桌面端的代码
debugger;
console.error("Need remove unused code");
/// #endif

export class Layout {
Expand Down
8 changes: 4 additions & 4 deletions app/src/plugin/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const loadPluginJS = (app: App, item: IPluginData) => {
console.error(`plugin ${item.name} load error:`, e);
}
return plugin;
}
};

export const loadPlugin = (app: App, item: IPluginData) => {
const plugin = loadPluginJS(app, item);
Expand All @@ -75,7 +75,7 @@ export const loadPlugin = (app: App, item: IPluginData) => {
icon: dock.config.icon,
title: dock.config.title,
hotkey: dock.config.hotkey
}], dock.config.position === "LeftBottom" ? 1 : 0, true)
}], dock.config.position === "LeftBottom" ? 1 : 0, true);
} else if (dock.config.position.startsWith("Bottom")) {
window.siyuan.layout.bottomDock.genButton([{
type: key,
Expand All @@ -84,7 +84,7 @@ export const loadPlugin = (app: App, item: IPluginData) => {
icon: dock.config.icon,
title: dock.config.title,
hotkey: dock.config.hotkey
}], dock.config.position === "BottomRight" ? 1 : 0, true)
}], dock.config.position === "BottomRight" ? 1 : 0, true);
} else if (dock.config.position.startsWith("Right")) {
window.siyuan.layout.rightDock.genButton([{
type: key,
Expand All @@ -93,7 +93,7 @@ export const loadPlugin = (app: App, item: IPluginData) => {
icon: dock.config.icon,
title: dock.config.title,
hotkey: dock.config.hotkey
}], dock.config.position === "RightBottom" ? 1 : 0, true)
}], dock.config.position === "RightBottom" ? 1 : 0, true);
}
});
const styleElement = document.createElement("style");
Expand Down

0 comments on commit 064013d

Please sign in to comment.