]> git.wh0rd.org Git - chrome-ext/tabs-backup.git/commitdiff
fixup! migrate from localStorage to chrome.storage.local
authorMike Frysinger <vapier@gentoo.org>
Fri, 7 Oct 2022 18:30:22 +0000 (00:15 +0545)
committerMike Frysinger <vapier@gentoo.org>
Fri, 7 Oct 2022 18:30:22 +0000 (00:15 +0545)
options.js

index 5760dbc91ad126611fff4fa851d7a81edb2be519..629a882da6880949b916febeaaf751e3d0d18716 100644 (file)
@@ -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,
        });