From ff3ab8481135044422c15c3d184fd91d8839ef56 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 6 Dec 2022 09:51:39 +0800 Subject: [PATCH] :rotating_light: --- app/src/config/repos.ts | 4 ++-- app/src/protyle/markdown/highlightRender.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/config/repos.ts b/app/src/config/repos.ts index 2428c783d..9226f4590 100644 --- a/app/src/config/repos.ts +++ b/app/src/config/repos.ts @@ -284,7 +284,7 @@ const bindProviderEvent = () => { let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10); if (7 > timeout) { if (1 > timeout) { - timeout = 30 + timeout = 30; } else { timeout = 7; } @@ -307,7 +307,7 @@ const bindProviderEvent = () => { window.siyuan.config.sync.s3 = s3; }); } else if (window.siyuan.config.sync.provider === 3) { - let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10) + let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10); if (7 > timeout) { timeout = 7; } diff --git a/app/src/protyle/markdown/highlightRender.ts b/app/src/protyle/markdown/highlightRender.ts index bebeaa742..dfb83e258 100644 --- a/app/src/protyle/markdown/highlightRender.ts +++ b/app/src/protyle/markdown/highlightRender.ts @@ -100,7 +100,7 @@ export const highlightRender = (element: Element, cdn = Constants.PROTYLE_CDN) = } } // 搜索定位 - const layoutElement = hasClosestByClassName(block, "search__layout", true) + const layoutElement = hasClosestByClassName(block, "search__layout", true); if (layoutElement && block.parentElement.getAttribute("data-node-id") === layoutElement.querySelector("#searchList > .b3-list-item--focus")?.getAttribute("data-node-id")) { const matchElement = block.querySelector('span[data-type="search-mark"]'); if (matchElement) {