diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts index 2e8f83843..d545212f8 100644 --- a/app/src/layout/dock/Outline.ts +++ b/app/src/layout/dock/Outline.ts @@ -220,7 +220,7 @@ export class Outline extends Model { public setCurrent(nodeElement: HTMLElement) { if (nodeElement.getAttribute("data-type") === "NodeHeading") { - this.setCurrentById(nodeElement.getAttribute("data-node-id")) + this.setCurrentById(nodeElement.getAttribute("data-node-id")); } else { let previousElement = getPreviousBlock(nodeElement); while (previousElement) { @@ -231,7 +231,7 @@ export class Outline extends Model { } } if (previousElement) { - this.setCurrentById(previousElement.getAttribute("data-node-id")) + this.setCurrentById(previousElement.getAttribute("data-node-id")); } else { fetchPost("/api/block/getBlockBreadcrumb", { id: nodeElement.getAttribute("data-node-id"), diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts index b19a2c52d..3518806c5 100644 --- a/app/src/mobile/util/initFramework.ts +++ b/app/src/mobile/util/initFramework.ts @@ -8,7 +8,6 @@ import {fetchPost} from "../../util/fetch"; import {setInlineStyle} from "../../util/assets"; import {renderSnippet} from "../../config/util/snippets"; import {setEmpty} from "./setEmpty"; -import {disabledProtyle, enableProtyle} from "../../protyle/util/onGet"; import {getOpenNotebookCount} from "../../util/pathName"; import {popMenu} from "./menu"; import {MobileFiles} from "./MobileFiles"; @@ -76,7 +75,7 @@ export const initFramework = () => { }); }); window.siyuan.mobile.files = new MobileFiles(); - document.getElementById("toolbarFile").addEventListener("click", (event) => { + document.getElementById("toolbarFile").addEventListener("click", () => { hideKeyboardToolbar(); hideKeyboard(); sidebarElement.style.left = "0"; diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts index dda3e3478..50cb2c13a 100644 --- a/app/src/mobile/util/keyboardToolbar.ts +++ b/app/src/mobile/util/keyboardToolbar.ts @@ -55,7 +55,7 @@ export const renderKeyboardToolbar = (protyle: IProtyle, range: Range) => { -` +`; const html = ` @@ -69,14 +69,14 @@ export const renderKeyboardToolbar = (protyle: IProtyle, range: Range) => { -` +`; toolbarElement.innerHTML = `