snowplow/snowplow-javascript-tracker

View on GitHub
plugins/browser-plugin-media-tracking/src/player.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function addVideoEventListeners has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function addVideoEventListeners(video: HTMLMediaElement, id: string) {
  let isWaiting = false;

  video.addEventListener('play', () => trackMediaPlay({ id, player: updatePlayer(video) }));

Severity: Minor
Found in plugins/browser-plugin-media-tracking/src/player.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status