File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( / ^ w e b \+ s i y u a n : \/ \/ b l o c k s \/ \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
You can’t perform that action at this time.
0 commit comments