Skip to content

Commit 9999419

Browse files
committed
Update Vue School localStorage key
1 parent 7dbc6d7 commit 9999419

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

themes/vue/source/js/common.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,15 @@
286286
*/
287287
function initVueSchoolBanner () {
288288
const banner = document.getElementById('vs')
289-
if (banner && !localStorage.getItem('VS_FW_BANNER_CLOSED')) {
289+
if (banner && !localStorage.getItem('VS_FW_BANNER_CLOSED_2')) {
290290
banner.classList.remove('vs-hidden')
291291
document.body.classList.add('has-vs-banner')
292292
document.getElementById('vs-close').addEventListener('click', function (e) {
293293
e.preventDefault()
294294
e.stopPropagation()
295295
document.getElementById('vs').remove()
296296
document.body.classList.remove('has-vs-banner')
297-
localStorage.setItem('VS_FW_BANNER_CLOSED', 1)
297+
localStorage.setItem('VS_FW_BANNER_CLOSED_2', 1)
298298
})
299299
}
300300
}
@@ -441,7 +441,7 @@
441441
if(dataTypeAttr && dataTypeAttr.nodeValue === 'theme-product-title') {
442442
return 300
443443
}
444-
return localStorage.getItem('VS_FW_BANNER_CLOSED') ? 0 : 80
444+
return localStorage.getItem('VS_FW_BANNER_CLOSED_2') ? 0 : 80
445445
}
446446
})
447447
}

0 commit comments

Comments
 (0)