diff options
Diffstat (limited to 'docs/assets/js/alert-init.js')
| -rw-r--r-- | docs/assets/js/alert-init.js | 5 |
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 |
