From a1484264625fb2ac34916e1f74c8048ea8116fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Norman=20Hauk=C3=A5s?= Date: Sun, 14 Aug 2016 13:03:41 +0200 Subject: [PATCH] Do not try to addListener when in dev mode --- src/app/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.ts b/src/app/main.ts index 00c136c..dbcfa7d 100644 --- a/src/app/main.ts +++ b/src/app/main.ts @@ -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) {