From 38f016d2adea9a7581d5c6f0e4afd3799cb270f8 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 22 Jan 2023 18:49:14 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20Android=20=E7=AB=AF=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=80=9A=E8=BF=87=20`siyuan://`=20=E5=8D=8F=E8=AE=AE=E6=8B=89?= =?UTF-8?q?=E8=B5=B7=20https://github.com/siyuan-note/siyuan/issues/3716?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/mobile/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts index 76df5c4af..462796ba7 100644 --- a/app/src/mobile/index.ts +++ b/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