From 3c30c2eda4fe9571bd384c42607bc2e433c6e376 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 10 Aug 2021 17:18:18 +0200 Subject: [PATCH] last couple changes --- ui/analytics.js | 2 +- ui/component/viewers/videoViewer/view.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/analytics.js b/ui/analytics.js index 0bc134b87..b0a269520 100644 --- a/ui/analytics.js +++ b/ui/analytics.js @@ -18,7 +18,7 @@ export const SHARE_INTERNAL = 'shareInternal'; const SHARE_THIRD_PARTY = 'shareThirdParty'; const WATCHMAN_BACKEND_ENDPOINT = 'https://watchman.na-backend.odysee.com/reports/playback'; -const SEND_DATA_TO_WATCHMAN_INTERVAL = 30; // in seconds +const SEND_DATA_TO_WATCHMAN_INTERVAL = 10; // in seconds // @if TARGET='app' if (isProduction) { diff --git a/ui/component/viewers/videoViewer/view.jsx b/ui/component/viewers/videoViewer/view.jsx index c29ebf862..650f96c01 100644 --- a/ui/component/viewers/videoViewer/view.jsx +++ b/ui/component/viewers/videoViewer/view.jsx @@ -143,7 +143,7 @@ function VideoViewer(props: Props) { analytics.playerStartedEvent(embedded); fetch(source, { method: 'HEAD', cache: 'no-store' }).then((response) => { - var playerPoweredBy = response.headers.get('x-powered-by'); + let playerPoweredBy = response.headers.get('x-powered-by'); analytics.videoStartEvent(claimId, timeToStart, playerPoweredBy, userId, claim.canonical_url, this); });