Do not try to addListener when in dev mode

This commit is contained in:
Nils Norman Haukås 2016-08-14 13:03:41 +02:00
parent 8306232240
commit a148426462

View file

@ -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) {