Просмотр исходного кода

Adds os and version to react-native userAgent.

efficient_tiling
damencho 8 лет назад
Родитель
Сommit
6d62e91ff1
1 измененных файлов: 4 добавлений и 1 удалений
  1. 4
    1
      react/features/base/lib-jitsi-meet/native/polyfills-browser.js

+ 4
- 1
react/features/base/lib-jitsi-meet/native/polyfills-browser.js Просмотреть файл

@@ -2,6 +2,8 @@ import Iterator from 'es6-iterator';
2 2
 import BackgroundTimer from 'react-native-background-timer';
3 3
 import 'url-polyfill'; // Polyfill for URL constructor
4 4
 
5
+import { Platform } from '../../react';
6
+
5 7
 import Storage from './Storage';
6 8
 
7 9
 /**
@@ -323,7 +325,8 @@ function _visitNode(node, callback) {
323 325
                 }
324 326
             }
325 327
 
326
-            navigator.userAgent = userAgent;
328
+            navigator.userAgent
329
+                = `${userAgent} (${Platform.OS} ${Platform.Version})`;
327 330
         })();
328 331
     }
329 332
 

Загрузка…
Отмена
Сохранить