Преглед изворни кода

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,7 +1692,7 @@ class RTCUtils extends Listenable {
1692 1692
      */
1693 1693
     setAudioOutputDevice(deviceId) {
1694 1694
         if (!this.isDeviceChangeAvailable('output')) {
1695
-            Promise.reject(
1695
+            return Promise.reject(
1696 1696
                 new Error('Audio output device change is not supported'));
1697 1697
         }
1698 1698
 

Loading…
Откажи
Сачувај