From 395822d33e567c5b25dc1cccbf7abcad50e4f64e Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Sat, 2 May 2026 15:39:52 +0200 Subject: [PATCH] fix setting flat theme on ff mobile --- copyparty/web/browser.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 51b71dc0..6fbe57bf 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -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);