diff --git a/app/src/config/exportConfig.ts b/app/src/config/exportConfig.ts index b1a6e1fed..d071c1d84 100644 --- a/app/src/config/exportConfig.ts +++ b/app/src/config/exportConfig.ts @@ -1,7 +1,6 @@ import {fetchPost} from "../util/fetch"; /// #if !BROWSER import {dialog} from "@electron/remote"; -import {shell} from "electron"; import {afterExport} from "../protyle/export/util"; import * as path from "path"; /// #endif diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.ts index 7a5b1c505..fc49471f8 100644 --- a/app/src/protyle/export/util.ts +++ b/app/src/protyle/export/util.ts @@ -1,6 +1,5 @@ /// #if !BROWSER import {escapeHtml} from "../../util/escape"; -import {shell} from "electron"; import * as path from "path"; /// #endif import {hideMessage, showMessage} from "../../dialog/message"; diff --git a/app/src/protyle/header/openTitleMenu.ts b/app/src/protyle/header/openTitleMenu.ts index 4461f1eaa..7eea42d0b 100644 --- a/app/src/protyle/header/openTitleMenu.ts +++ b/app/src/protyle/header/openTitleMenu.ts @@ -11,7 +11,6 @@ import {deleteFile} from "../../editor/deleteFile"; import {updateHotkeyTip} from "../util/compatibility"; /// #if !MOBILE import {openBacklink, openGraph, openOutline} from "../../layout/dock/util"; -import {shell} from "electron"; import * as path from "path"; /// #endif import {Constants} from "../../constants"; diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index 8d367a0df..7cb3fd389 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -157,7 +157,7 @@ const setHTML = (options: { protyle.scroll.lastScrollTop = protyle.contentElement.scrollTop; // 动态加载移除 if (!protyle.wysiwyg.element.querySelector(".protyle-wysiwyg--select") && !protyle.scroll.keepLazyLoad) { - const removeElements: Element[] = [] + const removeElements: Element[] = []; let childCount = protyle.wysiwyg.element.childElementCount; let scrollHeight = protyle.contentElement.scrollHeight; let lastElement = protyle.wysiwyg.element.lastElementChild; diff --git a/app/src/search/assets.ts b/app/src/search/assets.ts index 3a9a3f1be..cc9cf4355 100644 --- a/app/src/search/assets.ts +++ b/app/src/search/assets.ts @@ -1,5 +1,4 @@ /// #if !BROWSER -import {shell} from "electron"; import * as path from "path"; /// #endif import {Constants} from "../constants"; diff --git a/app/src/search/util.ts b/app/src/search/util.ts index 97aaba77b..5de62143c 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -1,6 +1,5 @@ import {getAllModels} from "../layout/getAll"; /// #if !BROWSER -import {shell} from "electron"; import * as path from "path"; /// #endif import {Constants} from "../constants";