Add browser best match option
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user