소스 검색

:art: Android 端支持通过 `siyuan://` 协议拉起 https://github.com/siyuan-note/siyuan/issues/3716

Liang Ding 2 년 전
부모
커밋
38f016d2ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/mobile/index.ts

+ 1 - 1
app/src/mobile/index.ts

@@ -85,7 +85,7 @@ window.goBack = goBack;
 window.showKeyboardToolbar = showKeyboardToolbar;
 window.hideKeyboardToolbar = hideKeyboardToolbar;
 window.openFileByURL = (openURL) => {
-    if (openURL && !/^siyuan:\/\/blocks\/\d{14}-\w{7}/.test(openURL)) {
+    if (openURL && /^siyuan:\/\/blocks\/\d{14}-\w{7}/.test(openURL)) {
         openMobileFileById(openURL.substr(16, 22),
             getSearch("focus", openURL) === "1" ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT]);
         return true