mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
fix: dismiss Announcement Bar
This commit is contained in:
1 parent
1174c8564f
commit
0f2261995e
1 file changed
+1
-1
@@ -34,7 +34,7 @@ window.PlotlyConfig = {MathJaxConfig: 'local'};
|
||||
// Check for any dismissed announcements that should be hidden on load
|
||||
Object.keys(localStorage).forEach(function(key) {
|
||||
if (/^wc-announcement-/.test(key)) {
|
||||
document.documentElement.setAttribute('data-announcement-status', 'dismissed');
|
||||
document.documentElement.setAttribute('data-wc-announcement-status', 'dismissed');
|
||||
console.debug('Hiding announcement...');
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user