mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-28 02:24:12 -05:00
fix problem with placeholder
This commit is contained in:
@@ -42,8 +42,9 @@ scheme_input.addEventListener("input", function () {
|
||||
});
|
||||
|
||||
// Check browser color scheme
|
||||
let isDark = window.matchMedia('(prefers-color-scheme: dark)').media === 'not all';
|
||||
let isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
updatePlaceholder(isDark);
|
||||
|
||||
window.matchMedia("(prefers-color-scheme: dark)").addListener(
|
||||
e => {
|
||||
let isDark = e.matches;
|
||||
|
||||
Reference in New Issue
Block a user