diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index 7b79bcb14..f75fd0aa7 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -501,7 +501,7 @@ define([ newPath: newPath, copy: false, }, waitFor()); - }).nThen(function (waitFor) { + }).nThen(function () { // migrate metadata var metadata = Env.user.userObject.getFolderData(folderElement); for (var key in metadata) { @@ -515,7 +515,7 @@ define([ // call callback cb(); }); - } + }; // Delete permanently some pads or folders var _delete = function (Env, data, cb) { diff --git a/www/common/userObject.js b/www/common/userObject.js index 9bf3487d6..109928e81 100644 --- a/www/common/userObject.js +++ b/www/common/userObject.js @@ -170,7 +170,7 @@ define([ } } return false; - } + }; // Get data from AllFiles (Cryptpad_RECENTPADS) var getFileData = exp.getFileData = function (file) {