Release 4.2.2+1: светлая тема по умолчанию (без flash dark), Telegram поддержки → t.me/evilfox100Bot. Windows 4.2.2.1.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="ru" data-theme="light">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
@@ -10,11 +10,11 @@
|
||||
var k = "navis.theme";
|
||||
var t = localStorage.getItem(k);
|
||||
if (t !== "light" && t !== "dark") {
|
||||
t = "dark";
|
||||
t = "light";
|
||||
}
|
||||
document.documentElement.setAttribute("data-theme", t);
|
||||
} catch (_) {
|
||||
document.documentElement.setAttribute("data-theme", "dark");
|
||||
document.documentElement.setAttribute("data-theme", "light");
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
@@ -2049,11 +2049,7 @@
|
||||
const t = localStorage.getItem(THEME_KEY);
|
||||
if (t === "light" || t === "dark") return t;
|
||||
} catch (_) {}
|
||||
try {
|
||||
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
||||
} catch (_) {
|
||||
return "dark";
|
||||
}
|
||||
return "light";
|
||||
}
|
||||
function applyTheme(t) {
|
||||
const theme = t === "dark" ? "dark" : "light";
|
||||
@@ -2109,7 +2105,7 @@
|
||||
// (internal/apphost/app.go → allowedLinkHosts).
|
||||
const RECOMMENDED_SERVICES = [
|
||||
{ icon: "🌐", name: "Сайт", url: "https://evilfox.win/" },
|
||||
{ icon: "✈️", name: "Поддержка: Telegram", url: "https://t.me/evilfox" }
|
||||
{ icon: "✈️", name: "Поддержка: Telegram", url: "https://t.me/evilfox100Bot" }
|
||||
];
|
||||
const AUTO_BEST_KEY = "navis.autoBest";
|
||||
// Оффер на карточке EvilFox рендерим из константы, чтобы правка была в одном месте.
|
||||
|
||||
Reference in New Issue
Block a user