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