Skip to content

Commit

Permalink
eslint was giving an error here
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Jul 27, 2023
1 parent 20ee07e commit ec279b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/rrweb/src/record/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,7 @@ function initMouseInteractionObserver({
if ('pointerType' in event) {
Object.keys(PointerTypes).forEach(
(pointerKey: keyof typeof PointerTypes) => {
if (
(event as PointerEvent).pointerType === pointerKey.toLowerCase()
) {
if (event.pointerType === pointerKey.toLowerCase()) {
pointerType = PointerTypes[pointerKey];
return;
}
Expand Down

0 comments on commit ec279b6

Please sign in to comment.