Skip to content

Instantly share code, notes, and snippets.

@rj12info
Created December 13, 2019 06:48
Show Gist options
  • Save rj12info/0cab0dce67a57904f7d276c65268786c to your computer and use it in GitHub Desktop.
Save rj12info/0cab0dce67a57904f7d276c65268786c to your computer and use it in GitHub Desktop.
var option = document.getElementById('color').value;
console.log("some event "+event.button)
chrome.storage.sync.set({
favoriteMouseWheelOption: option
}, function() {
// Update status to let user know options were saved.
var status = document.getElementById('status');
status.textContent = 'Options saved.';
setTimeout(function() {
status.textContent = '';
}, 750);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment