diff --git a/lib/client/hijack/wrapSubscription.js b/lib/client/hijack/wrapSubscription.js index e19661da..d81f4ff1 100644 --- a/lib/client/hijack/wrapSubscription.js +++ b/lib/client/hijack/wrapSubscription.js @@ -27,7 +27,7 @@ export function wrapSubscription () { const onReady = () => { Kadira.webVitals.completedObjects += 1; Kadira.webVitals.subs.push({ start, end: Ntp._now() }); - oldReady?.(); + oldReady && oldReady(); }; callbacks.onReady = onReady; return oldSubscribe(arguments[0],...params, callbacks); diff --git a/lib/client/models/webVitals.js b/lib/client/models/webVitals.js index 69a62642..6b74eef3 100644 --- a/lib/client/models/webVitals.js +++ b/lib/client/models/webVitals.js @@ -209,7 +209,6 @@ export class WebVitalsModel { },{}), ...browserInfo, commitHash: Meteor.gitCommitHash, - cacheCleaned: !localStorage?.length && !sessionStorage?.length, archVersion: getClientArchVersion(arch), incompleteSession: this.pendingObjects > 0 && this.pendingObjects > this.completedObjects };