Skip to content

Commit 269a598

Browse files
committed
refactor: comments
1 parent 82acda2 commit 269a598

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/topbar/TryVueNodeBanner.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ const showVueNodesBannerRef = ref(false)
3838
const checkLocalStorage = (): boolean => {
3939
try {
4040
const value = localStorage.getItem(STORAGE_KEY)
41-
// Return true if the banner was NOT dismissed (value is null or 'false')
41+
4242
return value !== 'true'
4343
} catch (error) {
44-
// If localStorage is not available (e.g., private browsing), show the banner
4544
console.warn('localStorage not available:', error)
4645
return true
4746
}
@@ -52,7 +51,6 @@ const handleDismiss = (): void => {
5251
try {
5352
localStorage.setItem(STORAGE_KEY, 'true')
5453
} catch (error) {
55-
// Silently fail if localStorage is not available
5654
console.warn('Failed to save banner dismissal:', error)
5755
}
5856
}

0 commit comments

Comments
 (0)