Improved lychee.dropbox and lychee.dropboxKey check

This commit is contained in:
Tobias Reich 2016-01-30 23:58:24 +01:00
parent 36dd48ec27
commit 7dd82fc516

View File

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