fix fonts and give 4 options

This commit is contained in:
2026-08-08 18:31:37 +02:00
parent de3b82d024
commit e0ed0d5467
8 changed files with 105 additions and 36 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
const status = document.getElementById("status");
const toggle = document.getElementById("toggle");
const fontStyleInputs = [...document.querySelectorAll('input[name="font-style"]')];
const fontStyles = new Set(fontStyleInputs.map((input) => input.value));
let activeTabId = null;
let currentEnabled = false;
let currentFontStyle = "round";
@@ -25,7 +26,7 @@
}
function renderFontStyle(style) {
currentFontStyle = style === "angular" ? "angular" : "round";
currentFontStyle = fontStyles.has(style) ? style : "round";
for (const input of fontStyleInputs) {
input.checked = input.value === currentFontStyle;
}