浏览代码

:rotating_light:

Vanessa 2 年之前
父节点
当前提交
ff3ab84811
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      app/src/config/repos.ts
  2. 1 1
      app/src/protyle/markdown/highlightRender.ts

+ 2 - 2
app/src/config/repos.ts

@@ -284,7 +284,7 @@ const bindProviderEvent = () => {
                 let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10);
                 let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10);
                 if (7 > timeout) {
                 if (7 > timeout) {
                     if (1 > timeout) {
                     if (1 > timeout) {
-                        timeout = 30
+                        timeout = 30;
                     } else {
                     } else {
                         timeout = 7;
                         timeout = 7;
                     }
                     }
@@ -307,7 +307,7 @@ const bindProviderEvent = () => {
                     window.siyuan.config.sync.s3 = s3;
                     window.siyuan.config.sync.s3 = s3;
                 });
                 });
             } else if (window.siyuan.config.sync.provider === 3) {
             } 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) {
                 if (7 > timeout) {
                     timeout = 7;
                     timeout = 7;
                 }
                 }

+ 1 - 1
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")) {
                 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"]');
                     const matchElement = block.querySelector('span[data-type="search-mark"]');
                     if (matchElement) {
                     if (matchElement) {