Skip to content

Commit

Permalink
do not track playback until we send back more than 0 dom bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
swaathee committed May 5, 2021
1 parent 1513bc8 commit 3cf7e22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/clarity-js/src/data/encode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Event, Token, Metric, BooleanFlag } from "@clarity-types/data";
import { Event, Token } from "@clarity-types/data";
import { time } from "@src/core/time";
import * as baseline from "@src/data/baseline";
import * as custom from "@src/data/custom";
Expand Down Expand Up @@ -42,7 +42,6 @@ export default function(event: Event): void {
queue(tokens, false);
break;
case Event.Upgrade:
metric.max(Metric.Playback, BooleanFlag.True);
tokens.push(upgrade.data.key);
queue(tokens);
break;
Expand Down

0 comments on commit 3cf7e22

Please sign in to comment.