Browse Source

Do not make metrics api call if there is no data to send

pull/1819/head
Gabe Kangas 4 years ago
parent
commit
f8181fd036
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 4
      webroot/js/metrics/playback.js

4
webroot/js/metrics/playback.js

@ -181,6 +181,10 @@ class PlaybackMetrics { @@ -181,6 +181,10 @@ class PlaybackMetrics {
}
async send() {
if (this.segmentDownloadTime.length === 0) {
return;
}
const errorCount = this.errors;
var data;

Loading…
Cancel
Save