diff --git a/src/options.js b/src/options.js index 9b10ad8..8c4c085 100644 --- a/src/options.js +++ b/src/options.js @@ -49,6 +49,7 @@ const saveOptions = (e) => { browser.storage.local.set({[tabLimitStorageKey]: newTabLimit}); // if the user enters an invalid value, make sure the form reflects the default value setTabLimitInputValue(newTabLimit); + window.close(); }; const restoreOptions = () => getTabLimit().then(setTabLimitInputValue);