Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
renanccastro committed May 22, 2024
1 parent 94d9c04 commit 90b868e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/client/hijack/wrapSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export function wrapSubscription () {
const onReady = () => {
Kadira.webVitals.completedObjects += 1;
Kadira.webVitals.subs.push({ start, end: Ntp._now() });
oldReady && oldReady();
if (oldReady) {
oldReady();
}
};
callbacks.onReady = onReady;
return oldSubscribe(arguments[0],...params, callbacks);
Expand Down
1 change: 0 additions & 1 deletion lib/client/models/webVitals.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export class WebVitalsModel {
} else {
document.addEventListener('readystatechange', () => {
if (document.readyState === 'complete') {
console.log('COMPLETE');
/* stop tracking new dynamic imports/methods/publications */
this.stopTracking();
}
Expand Down

0 comments on commit 90b868e

Please sign in to comment.