mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
trigger light/dark mode automatically
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
27b750813e
commit
a7f996678f
1 changed files with 2 additions and 0 deletions
|
@ -2047,6 +2047,8 @@
|
|||
setNightMode();
|
||||
}
|
||||
|
||||
if(window.matchMedia) { window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', setNightMode); }
|
||||
|
||||
function setNightMode() {
|
||||
// Set night mode
|
||||
var nNightMode = getstore('nightMode', '0')
|
||||
|
|
Loading…
Reference in a new issue