From ff7fee5bef6f554043484213e46a7caf27df6ea3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 8 Oct 2022 00:15:22 +0545 Subject: [PATCH] fixup! migrate from localStorage to chrome.storage.local --- options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }); -- 2.39.5