From e0d938b26cee2ae9882e012523d76a2bface19f9 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 30 Apr 2015 13:58:50 -0600 Subject: [PATCH] Fix legacy storage stuff --- src/js/messaging.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index 492aedf69..1accb1132 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -1075,7 +1075,7 @@ var backupUserData = function(callback) { µb.restoreBackupSettings.lastBackupFile = filename; µb.restoreBackupSettings.lastBackupTime = Date.now(); - µb.keyvalSetMany(µb.restoreBackupSettings); + vAPI.storage.set(µb.restoreBackupSettings); getLocalData(callback); }; @@ -1105,7 +1105,7 @@ var restoreUserData = function(request) { // Be sure to adjust `countdown` if adding/removing anything below µb.keyvalSetOne('version', userData.version); µBlock.saveLocalSettings(true); - µb.keyvalSetMany(userData.userSettings, onCountdown); + vAPI.storage.set(userData.userSettings, onCountdown); µb.keyvalSetOne('remoteBlacklists', userData.filterLists, onCountdown); µb.keyvalSetOne('netWhitelist', userData.netWhitelist || '', onCountdown); @@ -1115,7 +1115,7 @@ var restoreUserData = function(request) { µb.keyvalSetOne('dynamicFilteringString', s, onCountdown); µb.assets.put('assets/user/filters.txt', userData.userFilters, onCountdown); - µb.keyvalSetMany({ + vAPI.storage.set({ lastRestoreFile: request.file || '', lastRestoreTime: Date.now(), lastBackupFile: '',