Do not try to addListener when in dev mode
This commit is contained in:
parent
8306232240
commit
a148426462
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ function loadAngular() {
|
|||
* running in the background.
|
||||
*/
|
||||
function setupChromeListener() {
|
||||
if (typeof chrome === 'undefined') return; //do nothing
|
||||
if (window.tagitTestMode || typeof chrome === 'undefined') return; //do nothing
|
||||
|
||||
chrome.runtime.onMessage.addListener(
|
||||
function (request, sender, sendResponse) {
|
||||
|
|
Loading…
Reference in a new issue