maripo / CustomFilter

Google Chrome Extension
blog.maripo.org/2012/01/customblocker_release/
MIT License
65 stars 12 forks source link

chrome.storage.local.set({key: value}, function() SET to chrome.storage.sync.set({key: value}, function() { #146

Closed KevsBitcoin closed 6 years ago

KevsBitcoin commented 6 years ago

Can we please add this in the current update ? https://developer.chrome.com/extensions/storage

chrome.storage.sync.set({key: value}, function() {
  console.log('Value is set to ' + value);
});

chrome.storage.sync.get(['key'], function(result) {
  console.log('Value currently is ' + result.key);
});

or storage.local:

chrome.storage.local.set({key: value}, function() {
  console.log('Value is set to ' + value);
});

chrome.storage.local.get(['key'], function(result) {
  console.log('Value currently is ' + result.key);
});

Found here https://developer.chrome.com/extensions/storage chrome.storage.sync.set({key: value}, function() { console.log('Value is set to ' + value); });

chrome.storage.sync.get(['key'], function(result) {
  console.log('Value currently is ' + result.key);
});

or storage.local:

chrome.storage.local.set({key: value}, function() {
  console.log('Value is set to ' + value);
});

chrome.storage.local.get(['key'], function(result) {
  console.log('Value currently is ' + result.key);
});

Found here https://developer.chrome.com/extensions/storage

maripo commented 6 years ago

Thanks. Remote sync feature was added!