Vanessa 2023-01-17 00:23:21 +08:00
parent 67743b50ba
commit 2b06134a5a
4 changed files with 10 additions and 9 deletions

View file

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