|
@@ -129,8 +129,8 @@ export const initFramework = () => {
|
|
initEditorName();
|
|
initEditorName();
|
|
if (getOpenNotebookCount() > 0) {
|
|
if (getOpenNotebookCount() > 0) {
|
|
const openId = getSearch("id", window.location.href);
|
|
const openId = getSearch("id", window.location.href);
|
|
- if (openId) {
|
|
|
|
- openMobileFileById(getSearch("id", window.location.href),
|
|
|
|
|
|
+ if (openId !== null) {
|
|
|
|
+ openMobileFileById(openId,
|
|
getSearch("focus", window.location.href) === "1" ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT]);
|
|
getSearch("focus", window.location.href) === "1" ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT]);
|
|
} else {
|
|
} else {
|
|
const localDoc = window.siyuan.storage[Constants.LOCAL_DOCINFO];
|
|
const localDoc = window.siyuan.storage[Constants.LOCAL_DOCINFO];
|