summaryrefslogtreecommitdiff
path: root/docs/assets/js/alert-init.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/assets/js/alert-init.js')
-rw-r--r--docs/assets/js/alert-init.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/assets/js/alert-init.js b/docs/assets/js/alert-init.js
new file mode 100644
index 000000000..af3ac3254
--- /dev/null
+++ b/docs/assets/js/alert-init.js
@@ -0,0 +1,5 @@
+Object.keys(localStorage).forEach(function(key) {
+ if (/^global-alert-/.test(key)) {
+ document.documentElement.setAttribute('data-global-alert', 'closed');
+ }
+}); \ No newline at end of file