File tree Expand file tree Collapse file tree 3 files changed +1
-21
lines changed
Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ async function getLoginData() {
7676 ;(window as any ).isUserLoggedIn = true
7777 } else if (response .status === 401 ) {
7878 ;(window as any ).isUserLoggedIn = false
79- authStore .signOut ()
8079 }
8180 } catch (err ) {
8281 console .error (err )
@@ -101,14 +100,7 @@ onBeforeMount(() => {
101100
102101onMounted (() => {
103102 window .addEventListener (' resize' , checkShowSidebar )
104- document .addEventListener (' visibilitychange' , onVisibilityChange )
105103})
106-
107- function onVisibilityChange() {
108- if (document .visibilityState === ' visible' ) {
109- getLoginData ()
110- }
111- }
112104function checkShowSidebar() {
113105 simulatorMobileStore .showMobileView = window .innerWidth < simulatorMobileStore .minWidthToShowMobile ? true : false
114106}
Original file line number Diff line number Diff line change @@ -48,16 +48,7 @@ export default function redo(scope: ExtendedScope = globalScope): void {
4848 scope . backups . push ( redoData ) ;
4949
5050 // Load the scope data
51- try {
52- loadScope ( tempScope , JSON . parse ( redoData ) ) ;
53- } catch ( error ) {
54- console . error ( "Failed to parse redo data:" , error ) ;
55- // Restore history and backups to pre-redo state
56- scope . backups . pop ( ) ;
57- scope . history . push ( redoData ) ;
58- loading = false ;
59- return ;
60- }
51+ loadScope ( tempScope , JSON . parse ( redoData ) ) ;
6152
6253 // Transfer persistent properties
6354 tempScope . backups = scope . backups ;
Original file line number Diff line number Diff line change @@ -77,9 +77,6 @@ export const useAuthStore = defineStore({
7777 this . userAvatar = "default" ;
7878 this . locale = "en" ;
7979 this . isAdmin = false ;
80- try {
81- if ( typeof localStorage !== "undefined" ) localStorage . removeItem ( "cv_token" ) ;
82- } catch { }
8380 } ,
8481 } ,
8582 getters : {
You can’t perform that action at this time.
0 commit comments