mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
trigger light/dark mode automatically
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
27b750813e
commit
a7f996678f
@ -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 New Issue
Block a user