Move click and webrequest handlers outside of onInstalled

Since onInstalled is called when the extension is initially
installed, updated, or when the browser updates, I believe this
was causing the bug where clicking the page action icon was not
working. The handlers should be installed whenever background.js
is loaded.

Change-Id: I88687185c32751d3afe6d0dab783cf4a39154ab2
2 files changed
tree: e941a8765093d26b9a48a3f4412e76534d6013c7
  1. background.js
  2. content.js
  3. icon_19.png
  4. icon_38.png
  5. icon_active_19.png
  6. icon_active_38.png
  7. LICENSE
  8. manifest.json
  9. README.md
README.md

gerrit-switch

Chrome extension used to toggle PolyGerrit UI in Gerrit