use deprecated addListener for matchMedia to fix safari error
}
var lightQuery = window.matchMedia('(prefers-color-scheme: light)');
- lightQuery.addEventListener("change", function (e) {
+ lightQuery.addListener(function (e) {
const newThemeName = e.matches ? lightThemeName : darkThemeName;
znaiTheme.setExplicitly(newThemeName);
});
