mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -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
|
||||
};
|
||||
|
||||
// set default theme to flat on firefox mobile to avoid glitchy gradients (2026-04-26)
|
||||
theme = sread('cpp_thm') || (FIREFOX && MOBILE ? 'b' : 'a');
|
||||
if (!/^[a-x][yz]/.exec(theme))
|
||||
theme = sread('cpp_thm') || 'a';
|
||||
if (!/^[a-x][yz]/.exec(theme)){
|
||||
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];
|
||||
light = !!(theme.indexOf('y') + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue