diff options
author | Einar Egilsson <einar@einaregilsson.com> | 2015-09-09 14:53:22 +0000 |
---|---|---|
committer | Einar Egilsson <einar@einaregilsson.com> | 2015-09-09 14:53:22 +0000 |
commit | 8a77401f48360fe0d5501d4fd6b4cc194279d4f0 (patch) | |
tree | 6c6069b54de898c72a2281caa9702039df8a2bfb /js/popup.js | |
parent | a7506a34544f4df3ba65a854c81fadcca2eb303f (diff) |
Plenty of changes
Diffstat (limited to 'js/popup.js')
-rw-r--r-- | js/popup.js | 13 |
1 files changed, 13 insertions, 0 deletions
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 |