diff --git a/app/src/boot/globalEvent/mousemove.ts b/app/src/boot/globalEvent/mousemove.ts index 1cd11c9c2..71ce5b15c 100644 --- a/app/src/boot/globalEvent/mousemove.ts +++ b/app/src/boot/globalEvent/mousemove.ts @@ -194,7 +194,7 @@ export const windowMouseMove = (event: MouseEvent, mouseIsEnter: boolean) => { if (eventPath0 && eventPath0.nodeType !== 3 && eventPath0.classList.contains("av")) { // 数据库居中时光标在数据库侧边 https://github.com/siyuan-note/siyuan/issues/13853 if (eventPath0.getAttribute("data-type") === "NodeAttributeView") { - const rowElement = hasClosestByClassName(document.elementFromPoint(eventPath0.firstElementChild.getBoundingClientRect().left + 10, event.clientY), "av__row") + const rowElement = hasClosestByClassName(document.elementFromPoint(eventPath0.firstElementChild.getBoundingClientRect().left + 10, event.clientY), "av__row"); if (rowElement && !rowElement.classList.contains("av__row--header")) { getAllEditor().find(item => { if (item.protyle.wysiwyg.element.contains(eventPath0)) { diff --git a/app/src/search/util.ts b/app/src/search/util.ts index 37cafe11b..14e4042f1 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -1028,7 +1028,7 @@ const scrollToCurrent = (contentElement: HTMLElement,currentRange: Range, conten } } } -} +}; const renderNextSearchMark = (options: { id: string, @@ -1056,7 +1056,7 @@ const renderNextSearchMark = (options: { if (!currentRange.toString()) { highlightById(options.edit.protyle, options.id); } else { - scrollToCurrent(options.edit.protyle.contentElement, currentRange, contentRect) + scrollToCurrent(options.edit.protyle.contentElement, currentRange, contentRect); } } return; @@ -1130,12 +1130,12 @@ export const getArticle = (options: { if (isSupportCSSHL()) { searchMarkRender(options.edit.protyle, getResponse.data.keywords, options.id, () => { const highlightKeys = () => { - const currentRange = options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex] + const currentRange = options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex]; if (options.edit.protyle.highlight.ranges.length > 0 && currentRange) { if (!currentRange.toString()) { highlightById(options.edit.protyle, options.id); } else { - scrollToCurrent(options.edit.protyle.contentElement, currentRange, contentRect) + scrollToCurrent(options.edit.protyle.contentElement, currentRange, contentRect); } } else { highlightById(options.edit.protyle, options.id); diff --git a/app/src/sync/syncGuide.ts b/app/src/sync/syncGuide.ts index e19afc8f0..1f251ba11 100644 --- a/app/src/sync/syncGuide.ts +++ b/app/src/sync/syncGuide.ts @@ -150,7 +150,7 @@ export const syncGuide = (app?: App) => { /// #if MOBILE if (0 === window.siyuan.config.sync.provider) { if (needSubscribe()) { - return + return; } } else if (!isPaidUser()) { showMessage(window.siyuan.languages["_kernel"][214]);