Skip to content

Commit bbaa092

Browse files
committed
🎨 #17843
1 parent 07be79c commit bbaa092

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/src/util/pathName.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const parseSiYuanUriInfo = (uri: URL | string | null | undefined): ISiYua
7070
}
7171
};
7272

73-
export const parseUriInfo = () => {
73+
export const parseUriInfo = (): ISiYuanUriBlockInfo => {
7474
const searchParams = new URLSearchParams(window.location.search);
7575
const PWAURL = searchParams.get("url");
7676
if (/^web\+siyuan:\/\/blocks\/\d{14}-\w{7}/.test(PWAURL)) {
@@ -90,10 +90,12 @@ export const parseUriInfo = () => {
9090
}
9191

9292
// 支持通过 URL 查询字符串参数 `id` 和 `focus` 跳转到 Web 端指定块 https://github.com/siyuan-note/siyuan/pull/7086
93-
window.siyuan.editorIsFullscreen = searchParams.get("fullscreen") === "1";
93+
const fullscreen = searchParams.get("fullscreen") === "1";
94+
window.siyuan.editorIsFullscreen = fullscreen;
9495
return {
9596
id: searchParams.get("id") ?? "",
96-
focus: searchParams.get("focus") === "1"
97+
focus: searchParams.get("focus") === "1",
98+
fullscreen,
9799
};
98100
};
99101

0 commit comments

Comments
 (0)