Add browser best match option
ci / lint-test (pull_request) Successful in 5m1s
ci / build (pull_request) Successful in 7m28s

This commit is contained in:
Joe Julian
2026-04-25 11:42:43 -07:00
parent 2269944702
commit d1f30f5936
6 changed files with 96 additions and 7 deletions
+3 -1
View File
@@ -23,6 +23,7 @@ async function loadSettings() {
throw new Error(response?.error || "Could not load settings.");
}
document.getElementById("bearer-token").value = response.settings.bearerToken || "";
document.getElementById("best-match-only").checked = Boolean(response.settings.bestMatchOnly);
}
async function saveSettings(event) {
@@ -33,7 +34,8 @@ async function saveSettings(event) {
const response = await runtimeSend({
type: "keepassgo-save-settings",
settings: {
bearerToken: document.getElementById("bearer-token").value
bearerToken: document.getElementById("bearer-token").value,
bestMatchOnly: document.getElementById("best-match-only").checked
}
});
if (!response?.success) {