diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index d49353b01..266a75946 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -2083,7 +2083,7 @@ define([ Store.addSharedFolder = function (clientId, data, cb) { var s = getStore(data.teamId); s.manager.addSharedFolder(data, function (id) { - if (id && typeof(id) == "object" && id.error) { + if (id && typeof(id) === "object" && id.error) { return void cb(id); } var send = data.teamId ? s.sendEvent : sendDriveEvent; diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index 95bab2c24..71b01f36f 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -214,7 +214,7 @@ define([ if (!Env.folders[id]) { return {}; } var obj = Env.folders[id].proxy.metadata || {}; for (var k in Env.user.proxy[UserObject.SHARED_FOLDERS][id] || {}) { - var data = JSON.parse(JSON.stringify(Env.user.proxy[UserObject.SHARED_FOLDERS][id][k] || {})); + var data = Util.clone(Env.user.proxy[UserObject.SHARED_FOLDERS][id][k] || {}); if (k === "href" && data.indexOf('#') === -1) { try { data = Env.user.userObject.cryptor.decrypt(data);