From 7dd82fc516612cf6bf9489e7f84fcfdb61321696 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 30 Jan 2016 23:58:24 +0100 Subject: [PATCH] Improved lychee.dropbox and lychee.dropboxKey check --- src/scripts/lychee.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/lychee.js b/src/scripts/lychee.js index 1efc4eb..1f88917 100644 --- a/src/scripts/lychee.js +++ b/src/scripts/lychee.js @@ -330,7 +330,7 @@ lychee.retinize = function(path = '') { lychee.loadDropbox = function(callback) { - if (!lychee.dropbox && lychee.dropboxKey) { + if (lychee.dropbox===false && lychee.dropboxKey!=null && lychee.dropboxKey!=='') { loadingBar.show() @@ -351,7 +351,7 @@ lychee.loadDropbox = function(callback) { } s.parentNode.insertBefore(g, s) - } else if (lychee.dropbox&&lychee.dropboxKey) { + } else if (lychee.dropbox===true && lychee.dropboxKey!=null && lychee.dropboxKey!=='') { callback()