fix lint errors

This commit is contained in:
Anthony 2021-08-10 16:51:10 +02:00
parent d85a7eb64e
commit 38f9570ab4
No known key found for this signature in database
GPG key ID: C386D3C93D50E356
2 changed files with 3 additions and 4 deletions

View file

@ -40,7 +40,8 @@ type Analytics = {
tagFollowEvent: (string, boolean, ?string) => void,
playerLoadedEvent: (?boolean) => void,
playerStartedEvent: (?boolean) => void,
videoStartEvent: (string, number) => void,
videoStartEvent: (string, number, string, number, string, any) => void,
videoIsPlaying: (boolean, any) => void,
videoBufferEvent: (
StreamClaim,
{
@ -109,11 +110,10 @@ let lastSentTime;
// calculate data for backend, send them, and reset buffer data for next interval
async function sendAndResetWatchmanData() {
if (!userId) {
return 'Can only be used with a user id'
return 'Can only be used with a user id';
}
let timeSinceLastIntervalSend = new Date() - lastSentTime;
console.log(timeSinceLastIntervalSend);
lastSentTime = new Date();
let protocol;

View file

@ -134,7 +134,6 @@ function VideoViewer(props: Props) {
}
function doTrackingFirstPlay(e: Event, data: any) {
let timeToStart = data.secondsToLoad;
if (desktopPlayStartTime !== undefined) {