From 96d217d0357c813a4457e2287a87ce2ea78c1616 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Wed, 12 Dec 2018 15:05:19 +0100 Subject: [PATCH] openvidu-browser: WebRtcStats localStorage item to boolean value --- .../src/OpenViduInternal/WebRtcStats/WebRtcStats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvidu-browser/src/OpenViduInternal/WebRtcStats/WebRtcStats.ts b/openvidu-browser/src/OpenViduInternal/WebRtcStats/WebRtcStats.ts index 8f47d5c7..20aafdd3 100644 --- a/openvidu-browser/src/OpenViduInternal/WebRtcStats/WebRtcStats.ts +++ b/openvidu-browser/src/OpenViduInternal/WebRtcStats/WebRtcStats.ts @@ -64,7 +64,7 @@ export class WebRtcStats { const elastestInstrumentation = localStorage.getItem('elastest-instrumentation'); - if (elastestInstrumentation) { + if (!!elastestInstrumentation) { // ElasTest instrumentation object found in local storage console.warn('WebRtc stats enabled for stream ' + this.stream.streamId + ' of connection ' + this.stream.connection.connectionId);