Commit 96220b92 authored by chdorner's avatar chdorner

Move chrome ext button click handler into JS file

parent fc9287d0
...@@ -21,3 +21,11 @@ if (bookmarkletInstaller) { ...@@ -21,3 +21,11 @@ if (bookmarkletInstaller) {
event.preventDefault(); event.preventDefault();
}); });
} }
var chromeextInstaller = document.getElementById('js-chrome-extension-install');
if (chromeextInstaller) {
chromeextInstaller.addEventListener('click', function (event) {
chrome.webstore.install();
event.preventDefault();
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment