소스 검색

fix(loggging) fix exceptions on mobile

Maybe due to our DOM wrappers, the Symbol.iterator is not implemented, so
iterate over the IQ fields old-school style.
release-8443
Saúl Ibarra Corretgé 4 년 전
부모
커밋
56857ebe67
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5
    3
      modules/xmpp/strophe.jingle.js

+ 5
- 3
modules/xmpp/strophe.jingle.js 파일 보기

@@ -212,15 +212,17 @@ function _parseIceCandidates(transport) {
212 212
     const parseCandidates = [];
213 213
 
214 214
     // Extract the candidate information from the IQ.
215
-    for (const candidate of candidates) {
215
+    candidates.each((_, candidate) => {
216 216
         const attributes = candidate.attributes;
217 217
         const candidateAttrs = [];
218 218
 
219
-        for (const attr of attributes) {
219
+        for (let i = 0; i < attributes.length; i++) {
220
+            const attr = attributes[i];
221
+
220 222
             candidateAttrs.push(`${attr.name}: ${attr.value}`);
221 223
         }
222 224
         parseCandidates.push(candidateAttrs.join(' '));
223
-    }
225
+    });
224 226
 
225 227
     return parseCandidates;
226 228
 }

Loading…
취소
저장