File tree 1 file changed +11
-8
lines changed
packages/docs/.vitepress/theme/components
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 2
2
import { ref , onMounted } from ' vue'
3
3
4
4
const isVisible = ref (false )
5
- const nameStorage = ' MADVUE-BANNER-MARCH-2025 '
5
+ const nameStorage = ' MADVUE-BANNER-MARCH-25 '
6
6
const target = ' https://madvue.es/?utm_source=vue-router&utm_content=top_banner'
7
7
8
8
function closeBanner() {
@@ -18,14 +18,17 @@ onMounted(() => {
18
18
return
19
19
}
20
20
21
- const keys = Object .keys (localStorage ).filter (
22
- key => key .includes (' FREEWEEKEND25' ) && key .endsWith (' _CLOSED' )
23
- )
21
+ document .documentElement .classList .add (' has-banner' )
22
+ isVisible .value = true
24
23
25
- if (keys .length > 0 && keys .every (key => localStorage .getItem (key ) != null )) {
26
- isVisible .value = true
27
- document .documentElement .classList .add (' has-banner' )
28
- }
24
+ // const keys = Object.keys(localStorage).filter(
25
+ // key => key.includes('FREEWEEKEND25') && key.endsWith('_CLOSED')
26
+ // )
27
+
28
+ // if (keys.length > 0 && keys.every(key => localStorage.getItem(key) != null)) {
29
+ // isVisible.value = true
30
+ // document.documentElement.classList.add('has-banner')
31
+ // }
29
32
})
30
33
</script >
31
34
You can’t perform that action at this time.
0 commit comments