Bläddra i källkod

use let instead of var for javascript jitsi-meet external API

Guénaël Muller 6 år sedan
förälder
incheckning
f8c1d48357
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      tracim/tracim/templates/videoconf/jitsi_meet.mak

+ 4 - 4
tracim/tracim/templates/videoconf/jitsi_meet.mak Visa fil

@@ -42,8 +42,8 @@
42 42
         // It support alls jitsi-meet features.
43 43
         // About support for "private (1-to-1) text message into room", check this :
44 44
         // https://github.com/jitsi/lib-jitsi-meet/pull/616
45
-        var domain = '${jitsi_meet_room.domain}';
46
-        var options = {
45
+        let domain = '${jitsi_meet_room.domain}';
46
+        let options = {
47 47
 	    // jitsi-meet support now(10-2017) only one way to auto-auth, token,
48 48
 	    // which is anonymous BOSH auth with specific url (with token value in params of the url).
49 49
             %if jitsi_meet_room.use_token:
@@ -51,7 +51,7 @@
51 51
             %endif
52 52
             roomName : '${jitsi_meet_room.room}',
53 53
             parentNode: document.querySelector('#jitsi'),
54
-	    // has external API use iframe, height is a problem
54
+            // has external API use iframe, height is a problem
55 55
             height: 700,
56 56
             no_SSL: true,
57 57
             configOverwrite: {
@@ -82,7 +82,7 @@
82 82
             }
83 83
 
84 84
         };
85
-        var api = new JitsiMeetExternalAPI(domain, options);
85
+        let api = new JitsiMeetExternalAPI(domain, options);
86 86
         // Display name in jitsi-meet use XEP-0172 for MUC, which is discouraged,
87 87
         // when others clients use resource part of the Jabber id to do it.
88 88
         // That's why displayName compat with others XMPP client is not optimal.