diff options
author | Simon Brazell <simon.brazell@gmail.com> | 2019-09-29 23:04:24 +1000 |
---|---|---|
committer | Simon Brazell <simon.brazell@gmail.com> | 2019-10-01 23:21:26 +1000 |
commit | 2738833c5404031ed06c5e1985ee6f2dd5b359e5 (patch) | |
tree | 60207b46e90dc5e5d646e9212074a1d25f8438af /pages/popup/popup.js | |
parent | Add screenshots for store (diff) | |
download | libredirect-2738833c5404031ed06c5e1985ee6f2dd5b359e5.zip |
Add popup & options pages
Diffstat (limited to 'pages/popup/popup.js')
-rw-r--r-- | pages/popup/popup.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pages/popup/popup.js b/pages/popup/popup.js new file mode 100644 index 00000000..0dddb49c --- /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 |