I successfully saved this setting:
function save_options() {
var tbColor = document.getElementById('Color').value;
chrome.storage.sync.set({
'tbColor': Color
}, function() {
var status = document.getElementById('status');
status.textContent = 'Settings were saved.';
setTimeout(function() {
status.textContent = '';
}, 750);
});
}
However, when I try to retrieve the setting using:
alert(chrome.storage.sync.get({'tbColor'}));
No alert is displayed. Surprisingly, alert("Hello");
works perfectly fine.
Can someone please guide me on what I might be doing wrong with retrieving these settings? Being new to all of this, I would appreciate gentle assistance :)