File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,9 @@ const showVueNodesBannerRef = ref(false)
3838const 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}
You can’t perform that action at this time.
0 commit comments