File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,10 +133,11 @@ export const useAgentStore = defineStore('agent', () => {
133133 }
134134 if ( ! coreStore . isMobile ) {
135135 const savedIsTeleportedToBody = getLocalStorageItem ( 'isTeleportedToBody' ) ;
136+ const savedIsTeleportedToBodyBeforeFullScreen = getLocalStorageItem ( 'isTeleportedToBodyBeforeFullScreen' ) ;
137+ const isTeleportedToBodyFromLocalStorage = savedIsTeleportedToBody === 'true' || savedIsTeleportedToBodyBeforeFullScreen === 'true' ;
136138 const savedIsChatOpen = getLocalStorageItem ( 'isChatOpen' ) ;
137- const shouldTeleportToBody = savedIsTeleportedToBody === null ? true : savedIsTeleportedToBody === 'true' ;
138139
139- setIsTeleportedToBody ( shouldTeleportToBody ) ;
140+ setIsTeleportedToBody ( isTeleportedToBodyFromLocalStorage ) ;
140141 if ( isTeleportedToBody . value ) {
141142 isChatOpen . value = savedIsChatOpen === null ? true : savedIsChatOpen === 'true' ;
142143 }
You can’t perform that action at this time.
0 commit comments