diff --git a/WebExtensionShim.js b/WebExtensionShim.js index 34012b1..ab9fd22 100644 --- a/WebExtensionShim.js +++ b/WebExtensionShim.js @@ -80,7 +80,15 @@ chrome = browser = { } callback(results); } - } + }, + sync: { + set: function(...params) { + browser.storage.local.set(...params); + }, + get: function(...params) { + return browser.storage.local.get(...params); + }, + }, }, history: { search: function(query, callback) { @@ -136,4 +144,4 @@ chrome = browser = { create: function(createProperties, callback) { } } -}; \ No newline at end of file +};