2017-03-16 13:36:33 +00:00
|
|
|
/* globals configureCommands */
|
|
|
|
'use strict';
|
|
|
|
|
2017-02-24 11:04:43 +00:00
|
|
|
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'));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2017-03-16 13:36:33 +00:00
|
|
|
document.querySelector('#manage-shortcuts-button').addEventListener("click", configureCommands.open);
|
2017-02-28 23:57:03 +00:00
|
|
|
|
|
|
|
document.querySelector('#editor-styles-button').addEventListener("click", function() {
|
|
|
|
chrome.tabs.create({
|
|
|
|
'url': 'https://userstyles.org/styles/browse/chrome-extension'
|
|
|
|
});
|
|
|
|
});
|