Procházet zdrojové kódy

Revert Promise reject reason

I added reporting of Promise's reject reason in b10a1fc while merging
jitsi/ss_postinstall_fix since Promise's reject function has such an
argument. Hristo Terezov disagreed with it because reason is undefined
in the use case and found it to be confusing so I'm reverting to what he
intended in the first place.
dev1
Lyubomir Marinov před 9 roky
rodič
revize
d6bba327c2
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      modules/RTC/ScreenObtainer.js

+ 2
- 2
modules/RTC/ScreenObtainer.js Zobrazit soubor

@@ -248,9 +248,9 @@ var ScreenObtainer = {
248 248
                             .then(() => {
249 249
                                 doGetStreamFromExtension(this.options,
250 250
                                     streamCallback, failCallback);
251
-                            }).catch(reason => {
251
+                            }).catch(() => {
252 252
                                 this.handleExtensionInstallationError(options,
253
-                                    streamCallback, failCallback, reason);
253
+                                    streamCallback, failCallback);
254 254
                             });
255 255
                     },
256 256
                     this.handleExtensionInstallationError.bind(this,

Načítá se…
Zrušit
Uložit