enable default action "none"
This commit is contained in:
parent
8d433afa45
commit
de690f43a3
@ -111,7 +111,9 @@ async function saveOptions(ev) {
|
||||
pymt__bic: bic,
|
||||
showChangelog: allowChangelogMessages,
|
||||
};
|
||||
options = Object.fromEntries(Object.entries(options).filter(([k, v]) => v !== ""))
|
||||
// list of options that may be explicitly empty
|
||||
const EMPTYABLE_OPTIONS = ["defaultAction"];
|
||||
options = Object.fromEntries(Object.entries(options).filter(([k, v]) => v !== "" || EMPTYABLE_OPTIONS.includes(k)))
|
||||
console.info("saving", options);
|
||||
|
||||
browser.storage.sync.set(options).then(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user