stylus/openOptions.js
2017-02-24 06:04:43 -05:00

15 lines
504 B
JavaScript

document.querySelector('#manage-options-button').addEventListener("click", function() {
if (chrome.runtime.openOptionsPage) {
// Supported (Chrome 42+)
chrome.runtime.openOptionsPage();
} else {
// Fallback
window.open(chrome.runtime.getURL('options/index.html'));
}
});
document.querySelector('#shortcuts-button').addEventListener("click", function() {
chrome.tabs.create({
'url': 'chrome://extensions/configureCommands'
});
});