Lyubo Marinov 8 лет назад
Родитель
Сommit
05c90dc42c
3 измененных файлов: 3 добавлений и 2 удалений
  1. 1
    0
      .eslintrc.js
  2. 1
    1
      modules/RTC/RTC.js
  3. 1
    1
      modules/RTC/RTCUtils.js

+ 1
- 0
.eslintrc.js Просмотреть файл

143
         'no-restricted-globals': 0,
143
         'no-restricted-globals': 0,
144
         'no-shadow-restricted-names': 2,
144
         'no-shadow-restricted-names': 2,
145
         'no-undef': 2,
145
         'no-undef': 2,
146
+        'no-undef-init': 2,
146
         'no-undefined': 0,
147
         'no-undefined': 0,
147
         'no-unused-vars': 2,
148
         'no-unused-vars': 2,
148
 
149
 

+ 1
- 1
modules/RTC/RTC.js Просмотреть файл

470
      * @private
470
      * @private
471
      */
471
      */
472
     _getRemoteTrackById(streamId, trackId) {
472
     _getRemoteTrackById(streamId, trackId) {
473
-        let result = undefined;
473
+        let result;
474
 
474
 
475
         // .find will break the loop once the first match is found
475
         // .find will break the loop once the first match is found
476
         Object.keys(this.remoteTracks).find(endpoint => {
476
         Object.keys(this.remoteTracks).find(endpoint => {

+ 1
- 1
modules/RTC/RTCUtils.js Просмотреть файл

60
 
60
 
61
 let currentlyAvailableMediaDevices;
61
 let currentlyAvailableMediaDevices;
62
 
62
 
63
-let rawEnumerateDevicesWithCallback = undefined;
63
+let rawEnumerateDevicesWithCallback;
64
 /**
64
 /**
65
  * "rawEnumerateDevicesWithCallback" will be initialized only after WebRTC is
65
  * "rawEnumerateDevicesWithCallback" will be initialized only after WebRTC is
66
  * ready. Otherwise it is too early to assume that the devices listing is not
66
  * ready. Otherwise it is too early to assume that the devices listing is not

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