This commit is contained in:
Vanessa 2023-09-19 09:46:34 +08:00
parent 56fe8371d1
commit aa95c363ef
6 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -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";

View file

@ -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";

View file

@ -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;

View file

@ -1,5 +1,4 @@
/// #if !BROWSER
import {shell} from "electron";
import * as path from "path";
/// #endif
import {Constants} from "../constants";

View file

@ -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";