From 5f1c78884152a3a2db732d0234c172fd32136c3d Mon Sep 17 00:00:00 2001 From: d11e9 Date: Sun, 17 Apr 2016 17:57:36 +0000 Subject: [PATCH] Correctly catch undefined chrome variable --- assets/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/app.js b/assets/js/app.js index 176f98b030..4767f28ac0 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -103,7 +103,7 @@ function syncStorage() { - if (!chrome || !chrome.storage || !chrome.storage.sync) return; + if (typeof chrome === 'undefined' || !chrome || !chrome.storage || !chrome.storage.sync) return; var obj = {} var done = false;