|
|
@ -34,9 +34,11 @@ define(["dojo/_base/declare"], function (declare) {
|
|
|
|
if (window.matchMedia) {
|
|
|
|
if (window.matchMedia) {
|
|
|
|
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
|
|
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
mql.addEventListener("change", () => {
|
|
|
|
mql.addEventListener("change", () => {
|
|
|
|
this.nightModeChanged(mql.matches);
|
|
|
|
this.nightModeChanged(mql.matches);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
|
|
|
|
|
|
|
this.nightModeChanged(mql.matches);
|
|
|
|
this.nightModeChanged(mql.matches);
|
|
|
|
}
|
|
|
|
}
|
|
|
|