Kaynağa Gözat

Fixes this reference in methods.

master
damencho 9 yıl önce
ebeveyn
işleme
dd38d5bcd9
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      modules/xmpp/strophe.jingle.js

+ 2
- 2
modules/xmpp/strophe.jingle.js Dosyayı Görüntüle

@@ -240,7 +240,7 @@ class JingleConnectionPlugin extends ConnectionPlugin {
240 240
                         }
241 241
                     }
242 242
                 });
243
-                self.ice_config.iceServers = iceservers;
243
+                this.ice_config.iceServers = iceservers;
244 244
             }, (err) => {
245 245
                 logger.warn('getting turn credentials failed', err);
246 246
                 logger.warn('is mod_turncredentials or similar installed?');
@@ -254,7 +254,7 @@ class JingleConnectionPlugin extends ConnectionPlugin {
254 254
     getLog () {
255 255
         const data = {};
256 256
         Object.keys(this.sessions).forEach((sid) => {
257
-            const session = self.sessions[sid];
257
+            const session = this.sessions[sid];
258 258
             const pc = session.peerconnection;
259 259
             if (pc && pc.updateLog) {
260 260
                 // FIXME: should probably be a .dump call

Loading…
İptal
Kaydet