Skip to content

Commit 8e38733

Browse files
authored
feat: activate madvue banner (#2480)
1 parent ce1eb3e commit 8e38733

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

packages/docs/.vitepress/theme/components/MadVueBanner.vue

+11-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { ref, onMounted } from 'vue'
33
44
const isVisible = ref(false)
5-
const nameStorage = 'MADVUE-BANNER-MARCH-2025'
5+
const nameStorage = 'MADVUE-BANNER-MARCH-25'
66
const target = 'https://madvue.es/?utm_source=vue-router&utm_content=top_banner'
77
88
function closeBanner() {
@@ -18,14 +18,17 @@ onMounted(() => {
1818
return
1919
}
2020
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
2423
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+
// }
2932
})
3033
</script>
3134

0 commit comments

Comments
 (0)