Skip to content

Commit be24ea0

Browse files
Revert "fix: Clear cv_token from localStorage on sign out and add GSoC issue documentation for embed build, session desync, and debug panel."
This reverts commit b305491.
1 parent b305491 commit be24ea0

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

src/pages/simulatorHandler.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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
102101
onMounted(() => {
103102
window.addEventListener('resize', checkShowSidebar)
104-
document.addEventListener('visibilitychange', onVisibilityChange)
105103
})
106-
107-
function onVisibilityChange() {
108-
if (document.visibilityState === 'visible') {
109-
getLoginData()
110-
}
111-
}
112104
function checkShowSidebar() {
113105
simulatorMobileStore.showMobileView = window.innerWidth < simulatorMobileStore.minWidthToShowMobile ? true : false
114106
}

src/simulator/src/data/redo.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff 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;

src/store/authStore.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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: {

0 commit comments

Comments
 (0)