From 6d62e91ff141cc9177dbbb44642a8efdf9902e69 Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 18 Sep 2017 13:21:10 -0500 Subject: [PATCH] Adds os and version to react-native userAgent. --- .../features/base/lib-jitsi-meet/native/polyfills-browser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js index f161d7ceb..7dd7bcfd6 100644 --- a/react/features/base/lib-jitsi-meet/native/polyfills-browser.js +++ b/react/features/base/lib-jitsi-meet/native/polyfills-browser.js @@ -2,6 +2,8 @@ import Iterator from 'es6-iterator'; import BackgroundTimer from 'react-native-background-timer'; import 'url-polyfill'; // Polyfill for URL constructor +import { Platform } from '../../react'; + import Storage from './Storage'; /** @@ -323,7 +325,8 @@ function _visitNode(node, callback) { } } - navigator.userAgent = userAgent; + navigator.userAgent + = `${userAgent} (${Platform.OS} ${Platform.Version})`; })(); }