From b0be3f120d97af609e3d8bb3818a593e7e42c15a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 20 Apr 2023 12:34:20 +0800 Subject: [PATCH] :rotating_light: --- app/src/history/history.ts | 10 +++++----- app/src/mobile/util/closePanel.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/history/history.ts b/app/src/history/history.ts index 1a6980ba8..95860e742 100644 --- a/app/src/history/history.ts +++ b/app/src/history/history.ts @@ -309,9 +309,9 @@ export const openHistory = () => { icon: "iconHistory", title: window.siyuan.languages.dataHistory, bindEvent(element) { - bindEvent(element.firstElementChild) + bindEvent(element.firstElementChild); } - }) + }); } else { const dialog = new Dialog({ content: contentHTML, @@ -321,7 +321,7 @@ export const openHistory = () => { historyEditor = undefined; } }); - bindEvent(dialog.element, dialog) + bindEvent(dialog.element, dialog); } }; @@ -623,7 +623,7 @@ const bindEvent = (element: Element, dialog?: Dialog) => { dialog.destroy(); } else { closeModel(); - historyEditor = undefined + historyEditor = undefined; } break; } else if (type === "compare") { @@ -633,4 +633,4 @@ const bindEvent = (element: Element, dialog?: Dialog) => { target = target.parentElement; } }); -} +}; diff --git a/app/src/mobile/util/closePanel.ts b/app/src/mobile/util/closePanel.ts index fe7eac650..60be93d65 100644 --- a/app/src/mobile/util/closePanel.ts +++ b/app/src/mobile/util/closePanel.ts @@ -14,4 +14,4 @@ export const closeModel = () => { document.getElementById("model").style.transform = ""; activeBlur(); hideKeyboardToolbar(); -} +};