Преглед на файлове

fix(audio-output): return the reject promise

master
Leonard Kim преди 7 години
родител
ревизия
5ef178a105
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      modules/RTC/RTCUtils.js

+ 1
- 1
modules/RTC/RTCUtils.js Целия файл

1692
      */
1692
      */
1693
     setAudioOutputDevice(deviceId) {
1693
     setAudioOutputDevice(deviceId) {
1694
         if (!this.isDeviceChangeAvailable('output')) {
1694
         if (!this.isDeviceChangeAvailable('output')) {
1695
-            Promise.reject(
1695
+            return Promise.reject(
1696
                 new Error('Audio output device change is not supported'));
1696
                 new Error('Audio output device change is not supported'));
1697
         }
1697
         }
1698
 
1698
 

Loading…
Отказ
Запис