Created
December 13, 2019 06:48
-
-
Save rj12info/0cab0dce67a57904f7d276c65268786c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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