[sync] bugfix (file wasn't created if not found)
also, set sync delay to 5 seconds
This commit is contained in:
@ -440,7 +440,7 @@ window.plugin.sync.FileSearcher.prototype.initFile = function(assignIdCallback,
|
||||
};
|
||||
|
||||
searchCallback = function(resp) {
|
||||
if(resp.items) {
|
||||
if(resp.items && resp.items[0]) {
|
||||
handleFileId(resp.items[0].id);// file found
|
||||
} else if(!resp.error) {
|
||||
_this.createFileOrFolder(createCallback); // file not found, create file
|
||||
|
Reference in New Issue
Block a user