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

This commit is contained in:
Liang Ding 2023-01-22 18:49:14 +08:00
parent 9a834d0464
commit 38f016d2ad
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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