From: Mike Frysinger Date: Fri, 7 Oct 2022 18:30:22 +0000 (+0545) Subject: fixup! migrate from localStorage to chrome.storage.local X-Git-Tag: v0.3~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ff7fee5bef6f554043484213e46a7caf27df6ea3;p=chrome-ext%2Ftabs-backup.git fixup! migrate from localStorage to chrome.storage.local --- diff --git a/options.js b/options.js index 5760dbc..629a882 100644 --- a/options.js +++ b/options.js @@ -55,8 +55,8 @@ function setThemeValue(value) { function saveOptions () { chrome.storage.local.set({ - prefs_backup_timer: getSelectValue("prefsSelectBackupPeriod"), - prefs_max_backup_items: getSelectValue("prefsSelectMaxBackups"), + prefs_backup_timer: parseInt(getSelectValue("prefsSelectBackupPeriod")), + prefs_max_backup_items: parseInt(getSelectValue("prefsSelectMaxBackups")), prefs_theme: document.getElementById('prefsTheme').value, });