aboutsummaryrefslogtreecommitdiff
path: root/js/popup.js
diff options
context:
space:
mode:
authorEinar Egilsson <einar@einaregilsson.com>2015-09-09 14:53:22 +0000
committerEinar Egilsson <einar@einaregilsson.com>2015-09-09 14:53:22 +0000
commit8a77401f48360fe0d5501d4fd6b4cc194279d4f0 (patch)
tree6c6069b54de898c72a2281caa9702039df8a2bfb /js/popup.js
parenta7506a34544f4df3ba65a854c81fadcca2eb303f (diff)
Plenty of changes
Diffstat (limited to 'js/popup.js')
-rw-r--r--js/popup.js13
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