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);
});
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);
});
Can we please add this in the current update ? https://developer.chrome.com/extensions/storage
or storage.local:
Found here https://developer.chrome.com/extensions/storage chrome.storage.sync.set({key: value}, function() { console.log('Value is set to ' + value); });
or storage.local:
Found here https://developer.chrome.com/extensions/storage