Commit 5f1c7888 authored by d11e9's avatar d11e9

Correctly catch undefined chrome variable

parent 7c7f015d
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
function syncStorage() { function syncStorage() {
if (!chrome || !chrome.storage || !chrome.storage.sync) return; if (typeof chrome === 'undefined' || !chrome || !chrome.storage || !chrome.storage.sync) return;
var obj = {} var obj = {}
var done = false; var done = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment