File tree 1 file changed +14
-11
lines changed
packages/docs/.vitepress/theme/components
1 file changed +14
-11
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=pinia&utm_content=top_banner'
7
7
8
8
function closeBanner() {
@@ -18,17 +18,20 @@ 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
+ isVisible .value = true
22
+ document .documentElement .classList .add (' has-banner' )
24
23
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
+ // }
32
35
})
33
36
</script >
34
37
You can’t perform that action at this time.
0 commit comments