Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 051aabc

Browse files
committedApr 22, 2022
Update Vue School localStorage key
1 parent 733a97b commit 051aabc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎.vitepress/theme/components/VueSchoolBanner.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ import { ref, onMounted } from 'vue'
3737
const isVisible = ref(false)
3838
3939
onMounted(() => {
40-
isVisible.value = !localStorage.getItem('VS_FW_22')
40+
isVisible.value = !localStorage.getItem('VS_FW_22_OFFER')
4141
if (isVisible.value) document.body.classList.add('has-top-banner')
4242
})
4343
4444
function close () {
4545
isVisible.value = false
4646
document.body.classList.remove('has-top-banner')
47-
localStorage.setItem('VS_FW_22', 1)
47+
localStorage.setItem('VS_FW_22_OFFER', 1)
4848
}
4949
</script>
5050

0 commit comments

Comments
 (0)
Please sign in to comment.