mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 13:12:26 -06:00
fix setting flat theme on ff mobile
This commit is contained in:
parent
ffb69a38fb
commit
395822d33e
|
|
@ -9120,10 +9120,13 @@ var settheme = (function () {
|
||||||
'7': ['▲', 'font-size:3em'], //cp437
|
'7': ['▲', 'font-size:3em'], //cp437
|
||||||
};
|
};
|
||||||
|
|
||||||
// set default theme to flat on firefox mobile to avoid glitchy gradients (2026-04-26)
|
theme = sread('cpp_thm') || 'a';
|
||||||
theme = sread('cpp_thm') || (FIREFOX && MOBILE ? 'b' : 'a');
|
if (!/^[a-x][yz]/.exec(theme)){
|
||||||
if (!/^[a-x][yz]/.exec(theme))
|
|
||||||
theme = dtheme;
|
theme = dtheme;
|
||||||
|
// set default theme to flat on firefox mobile to avoid glitchy gradients (2026-04-26)
|
||||||
|
if(FIREFOX && MOBILE)
|
||||||
|
theme = 'b';
|
||||||
|
}
|
||||||
|
|
||||||
themen = theme.split(/ /)[0];
|
themen = theme.split(/ /)[0];
|
||||||
light = !!(theme.indexOf('y') + 1);
|
light = !!(theme.indexOf('y') + 1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue