From 0f2261995ee147a464a02dfa3ac1cf09f0188747 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 7 Sep 2022 22:32:42 +0100 Subject: [PATCH] fix: dismiss Announcement Bar --- modules/wowchemy/assets/js/wowchemy-init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wowchemy/assets/js/wowchemy-init.js b/modules/wowchemy/assets/js/wowchemy-init.js index 1c2cdf40..1da7a225 100644 --- a/modules/wowchemy/assets/js/wowchemy-init.js +++ b/modules/wowchemy/assets/js/wowchemy-init.js @@ -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...'); } });