use storage.sync instead of storage.local, to take advantage of FF and Chrome extension syncronization, fixes #12

This commit is contained in:
Peter Snyder 2017-10-23 00:59:12 -05:00
parent 6059d1abad
commit 2fab105620

View file

@ -6,7 +6,7 @@
const storageObject = rootObject.storage;
const get = function (callback) {
storageObject.local.get(webApiManagerKeySettingsKey, function (results) {
storageObject.sync.get(webApiManagerKeySettingsKey, function (results) {
let loadedValues = results && results[webApiManagerKeySettingsKey];
@ -31,7 +31,7 @@
const set = function (object, callback) {
const valueToStore = {};
valueToStore[webApiManagerKeySettingsKey] = object;
storageObject.local.set(valueToStore, callback);
storageObject.sync.set(valueToStore, callback);
};
window.WEB_API_MANAGER.storageLib = {