aboutsummaryrefslogtreecommitdiff
path: root/js/popup.js
diff options
context:
space:
mode:
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