manage: open external links with openURL()

This commit is contained in:
tophf 2017-04-01 07:46:39 +03:00
parent 1cf904b135
commit 3d163df853

View File

@ -31,7 +31,7 @@ function initGlobalEvents() {
$('#search').oninput = searchStyles; $('#search').oninput = searchStyles;
$('#manage-options-button').onclick = () => chrome.runtime.openOptionsPage(); $('#manage-options-button').onclick = () => chrome.runtime.openOptionsPage();
$('#manage-shortcuts-button').onclick = configureCommands.open; $('#manage-shortcuts-button').onclick = configureCommands.open;
$('#find-editor-styles').onclick = EntryOnClick.external; $$('#header a[href^="http"]').forEach(a => (a.onclick = EntryOnClick.external));
// focus search field on / key // focus search field on / key
document.onkeypress = event => { document.onkeypress = event => {