fix: dismiss Announcement Bar

This commit is contained in:
George Cushen committed 2022-09-07 22:32:42 +01:00
1 parent 1174c8564f
commit 0f2261995e
1 file changed
+1 -1
+1 -1
View File
@@ -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...');
}
});