mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 02:10:15 +01:00
This commit is contained in:
parent
7e753908b8
commit
bfcdf3c352
5 changed files with 85 additions and 44 deletions
|
|
@ -137,11 +137,13 @@ export const initFramework = () => {
|
|||
syncGuide();
|
||||
});
|
||||
if (getOpenNotebookCount() > 0) {
|
||||
const openURL = window.JSAndroid.getBlockURL();
|
||||
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;
|
||||
if (window.JSAndroid) {
|
||||
const openURL = window.JSAndroid.getBlockURL();
|
||||
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;
|
||||
}
|
||||
}
|
||||
const openId = getSearch("id");
|
||||
if (openId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue