Przeglądaj źródła

Prettifying the code related to showing the feedback dialog

master
hristoterezov 9 lat temu
rodzic
commit
7c7ce66ae4
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3
    4
      conference.js

+ 3
- 4
conference.js Wyświetl plik

@@ -125,12 +125,11 @@ function muteLocalVideo (muted) {
125 125
 function hangup (requestFeedback = false) {
126 126
     APP.conference._room.leave().then(() => {
127 127
         connection.disconnect();
128
-        let promise = Promise.resolve();
129
-
130 128
         if (requestFeedback) {
131
-            promise = APP.UI.requestFeedback();
129
+            return APP.UI.requestFeedback();
130
+        } else {
131
+            return Promise.resolve();
132 132
         }
133
-        return promise;
134 133
     }).then(function () {
135 134
         if (!config.enableWelcomePage) {
136 135
             return;

Ładowanie…
Anuluj
Zapisz