Correctly catch undefined chrome variable

pull/1/head
d11e9 9 years ago
parent 7c7f015d6a
commit 5f1c788841
  1. 2
      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;

Loading…
Cancel
Save