From eb0a3fc4e832ae1e9032ad8ac0c4620f0114cb3d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 16 Feb 2025 19:03:38 +0800 Subject: [PATCH] :rotating_light: --- app/src/menus/navigation.ts | 2 +- app/src/protyle/header/Title.ts | 2 +- app/src/protyle/util/compatibility.ts | 4 ++-- app/src/protyle/util/paste.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts index 2d182146c..ff700a21a 100644 --- a/app/src/menus/navigation.ts +++ b/app/src/menus/navigation.ts @@ -722,7 +722,7 @@ export const genImportMenu = (notebookId: string, pathString: string) => { files = (getDockByType("file").data["file"] as Files); /// #endif const liElement = files.element.querySelector(`[data-path="${pathString}"]`); - liElement.querySelector(".b3-list-item__toggle").classList.remove("fn__hidden") + liElement.querySelector(".b3-list-item__toggle").classList.remove("fn__hidden"); files.getLeaf(liElement, notebookId, true); window.siyuan.menus.menu.remove(); }; diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts index 52b08a8f9..ec887df76 100644 --- a/app/src/protyle/header/Title.ts +++ b/app/src/protyle/header/Title.ts @@ -68,7 +68,7 @@ export class Title { } if (this.editElement.textContent === "") { this.editElement.querySelectorAll("br").forEach(item => { - item.remove() + item.remove(); }); } this.rename(protyle); diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts index fb3d98ad8..35bc97ba3 100644 --- a/app/src/protyle/util/compatibility.ts +++ b/app/src/protyle/util/compatibility.ts @@ -40,7 +40,7 @@ export const readText = () => { }; export const readClipboard = async () => { - const text: { textPlain?: string, textHTML?: string } = {} + const text: { textPlain?: string, textHTML?: string } = {}; if (isInAndroid()) { text.textPlain = window.JSAndroid.readClipboard(); } else if (isInHarmony()) { @@ -58,7 +58,7 @@ export const readClipboard = async () => { } } return text; -} +}; export const writeText = (text: string) => { let range: Range; diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts index e68b8ae49..c976e557b 100644 --- a/app/src/protyle/util/paste.ts +++ b/app/src/protyle/util/paste.ts @@ -279,8 +279,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven files = event.dataTransfer.items; } } else { - textHTML = event.textHTML - textPlain = event.textPlain + textHTML = event.textHTML; + textPlain = event.textPlain; } // Improve the pasting of selected text in PDF rectangular annotation https://github.com/siyuan-note/siyuan/issues/11629