Some user confusion about the extension not working seems to be around the requirement for using and RPC Secret/Key.
Currently the extension will try to warn a user if they do not set a key by using alert in the background.js script. This works for Chrome (and likely other Chromium browser):
However Firefox security settings block alerts from background windows/activity, so the only notice is in the browser console:
Looking into this, some recommendations are to use notifications instead (which will be supported in all browsers). Usually the downside is having to request a new permission, but notifications are already being used so it will be a non-issue. Secondarily, a notification will be less front-and-center, and could theoretically be missed.
Conversely some folks have had success injecting the alert into the active tab, but this has some limitations.
Some user confusion about the extension not working seems to be around the requirement for using and RPC Secret/Key.
Currently the extension will try to warn a user if they do not set a key by using
alert
in the background.js script. This works for Chrome (and likely other Chromium browser):However Firefox security settings block alerts from background windows/activity, so the only notice is in the browser console:
Looking into this, some recommendations are to use notifications instead (which will be supported in all browsers). Usually the downside is having to request a new permission, but notifications are already being used so it will be a non-issue. Secondarily, a notification will be less front-and-center, and could theoretically be missed.
Conversely some folks have had success injecting the alert into the active tab, but this has some limitations.
There's a decent write-up on SO about this.