File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 286
286
*/
287
287
function initVueSchoolBanner ( ) {
288
288
const banner = document . getElementById ( 'vs' )
289
- if ( banner && ! localStorage . getItem ( 'VS_FW_BANNER_CLOSED ' ) ) {
289
+ if ( banner && ! localStorage . getItem ( 'VS_FW_BANNER_CLOSED_2 ' ) ) {
290
290
banner . classList . remove ( 'vs-hidden' )
291
291
document . body . classList . add ( 'has-vs-banner' )
292
292
document . getElementById ( 'vs-close' ) . addEventListener ( 'click' , function ( e ) {
293
293
e . preventDefault ( )
294
294
e . stopPropagation ( )
295
295
document . getElementById ( 'vs' ) . remove ( )
296
296
document . body . classList . remove ( 'has-vs-banner' )
297
- localStorage . setItem ( 'VS_FW_BANNER_CLOSED ' , 1 )
297
+ localStorage . setItem ( 'VS_FW_BANNER_CLOSED_2 ' , 1 )
298
298
} )
299
299
}
300
300
}
441
441
if ( dataTypeAttr && dataTypeAttr . nodeValue === 'theme-product-title' ) {
442
442
return 300
443
443
}
444
- return localStorage . getItem ( 'VS_FW_BANNER_CLOSED ' ) ? 0 : 80
444
+ return localStorage . getItem ( 'VS_FW_BANNER_CLOSED_2 ' ) ? 0 : 80
445
445
}
446
446
} )
447
447
}
You can’t perform that action at this time.
0 commit comments