summaryrefslogtreecommitdiffstats
path: root/pages/popup/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'pages/popup/popup.js')
-rw-r--r--pages/popup/popup.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/pages/popup/popup.js b/pages/popup/popup.js
new file mode 100644
index 0000000..0dddb49
--- /dev/null
+++ b/pages/popup/popup.js
@@ -0,0 +1,7 @@
+document.querySelector('#options').addEventListener('click', function () {
+ if (chrome.runtime.openOptionsPage) {
+ chrome.runtime.openOptionsPage();
+ } else {
+ window.open(chrome.runtime.getURL('../options/options.html'));
+ }
+}); \ No newline at end of file