From 8a77401f48360fe0d5501d4fd6b4cc194279d4f0 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Wed, 9 Sep 2015 14:53:22 +0000 Subject: Plenty of changes --- js/popup.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 js/popup.js (limited to 'js/popup.js') diff --git a/js/popup.js b/js/popup.js new file mode 100644 index 0000000..fbff178 --- /dev/null +++ b/js/popup.js @@ -0,0 +1,13 @@ +function hi() { + chrome.browserAction.setIcon({ + path: { + 19: "images/icon19disabled.png", + 38: "images/icon38disabled.png" + } + }); + open('redirector.html'); +} + +document.addEventListener('DOMContentLoaded', function() { + document.getElementsByTagName('button')[0].addEventListener('click', hi); +}) \ No newline at end of file -- cgit v1.2.3