Commit fc9287d0 authored by chdorner's avatar chdorner

Move bookmarklet button click handler into JS file

parent 5cc5685f
......@@ -13,3 +13,11 @@ if (window.chrome !== undefined) {
elements[i].classList.add('hidden');
}
}
var bookmarkletInstaller = document.getElementById('js-bookmarklet-install');
if (bookmarkletInstaller) {
bookmarkletInstaller.addEventListener('click', function (event) {
window.alert('Drag me to the bookmarks bar');
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