You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chrome.storage.onChanged.addListener(function(changes,namespace){for(keyinchanges){varstorageChange=changes[key];console.log('Storage key "%s" in namespace "%s" changed. '+'Old value was "%s", new value is "%s".',key,namespace,storageChange.oldValue,storageChange.newValue);}});
If you want to extend it a bit.
You'd also need to keep track of hidden elements, and then unhide before hiding them again based on the new checked/unchecked preferences
The text was updated successfully, but these errors were encountered:
chrome.storage.onChanged.addListener(function(changes, namespace) {
for (key in changes) {
var storageChange = changes[key];
console.log('Storage key "%s" in namespace "%s" changed. ' +
'Old value was "%s", new value is "%s".',
key,
namespace,
storageChange.oldValue,
storageChange.newValue);
}
});
If you want to extend it a bit.
You'd also need to keep track of hidden elements, and then unhide before
hiding them again based on the new checked/unchecked preferences
—
Reply to this email directly or view it on GitHub #2
.
Something using the listener:
If you want to extend it a bit.
You'd also need to keep track of hidden elements, and then unhide before hiding them again based on the new checked/unchecked preferences
The text was updated successfully, but these errors were encountered: