Vanessa 2023-01-17 00:50:33 +08:00
parent f49ebee0e8
commit ba41c7db05
2 changed files with 2 additions and 2 deletions

View file

@ -300,7 +300,7 @@ export const JSONToLayout = (isStart: boolean) => {
} }
// https://github.com/siyuan-note/siyuan/pull/7086 // https://github.com/siyuan-note/siyuan/pull/7086
const openId = getSearch("id"); const openId = getSearch("id");
if (openId !== null) { if (openId) {
openFileById({ openFileById({
id: openId, id: openId,
action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], action: [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT],

View file

@ -129,7 +129,7 @@ export const initFramework = () => {
initEditorName(); initEditorName();
if (getOpenNotebookCount() > 0) { if (getOpenNotebookCount() > 0) {
const openId = getSearch("id"); const openId = getSearch("id");
if (openId !== null) { if (openId) {
openMobileFileById(openId, openMobileFileById(openId,
getSearch("focus") === "1" ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT]); getSearch("focus") === "1" ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT]);
} else { } else {