Browse Source

Improved lychee.dropbox and lychee.dropboxKey check

Tobias Reich 8 years ago
parent
commit
7dd82fc516
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/scripts/lychee.js

+ 2 - 2
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()