fixed default settings override for ios devices

This commit is contained in:
wukko 2022-08-22 13:30:45 +06:00
parent 869dab9d1f
commit 08cbc05018

View file

@ -143,8 +143,8 @@ function changeSwitcher(li, b) {
if (li == "theme") detectColorScheme();
} else {
let pref = switchers[li][0];
sSet(li, pref);
if (isIOS && exceptions[li]) pref = exceptions[li];
sSet(li, pref);
for (i in switchers[li]) {
(switchers[li][i] == pref) ? enable(`${li}-${pref}`) : disable(`${li}-${switchers[li][i]}`)
}