From 27124997a5972cbbb56671b06f981aad92091432 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 2 Jul 2020 17:07:57 +0200 Subject: [PATCH] lint compliance --- www/common/outer/async-store.js | 2 +- www/common/proxy-manager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);