mirror of
https://github.com/transatoshi-mw/grin-explorer.git
synced 2025-10-22 05:43:42 +00:00
Initial commit
This commit is contained in:
8
static/scripts/darkmode.js
Normal file
8
static/scripts/darkmode.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function checkDarkMode() {
|
||||
var mode = localStorage.getItem('mode');
|
||||
if(mode === 'disabled') {
|
||||
document.body.classList.remove("dark-mode");
|
||||
document.body.classList.add("bg-light");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user