Initial commit
This commit is contained in:
5
static/assets/js/theme-store.js
Normal file
5
static/assets/js/theme-store.js
Normal file
@@ -0,0 +1,5 @@
|
||||
(function () {
|
||||
var t = localStorage.getItem('mifi-theme');
|
||||
if (t === 'light' || t === 'dark') document.documentElement.setAttribute('data-theme', t);
|
||||
else document.documentElement.removeAttribute('data-theme');
|
||||
})();
|
||||
Reference in New Issue
Block a user