MOBILE-3277 siteplugins: Don't clone the js result of init
The init JS can return providers with dependencies, making this clone extremely slow
This commit is contained in:
parent
f2f17a4d1b
commit
7dadd08a30
@ -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 = {};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user