javascript
Get and set storage in chrome extension
chrome.storage.sync.set({name: value}, function() {
console.log('value is : ' + value);
});
chrome.storage.sync.get(['name'], function(result) {
console.log('name is : ' + result.name);
});
Was this helpful?
Similar Posts
- Remember previously entered data in an input field using local storage in Javascript
- Set default date in Jquery UI datepicker
- Set a cookie for whole domain in javascript
- Set a cookie that never expires using Javascript
- Get Top MAX and MIN itens inside array Javascript
- indexOf and lastIndexOf a string in javascript
- Truthy and Falsy in JavaScript