MOBILE-3277 siteplugins: Don't clone the js result of init

The init JS can return providers with dependencies, making this clone extremely slow
main
Dani Palou 2020-01-09 12:56:19 +01:00
parent f2f17a4d1b
commit 7dadd08a30
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ export class CoreSitePluginsProvider {
if (initResult) {
// First of all, add the data returned by the init JS (if any).
data = this.utils.clone(initResult.jsResult || {});
data = Object.assign({}, initResult.jsResult || {});
if (typeof data == 'boolean') {
data = {};
}