Explorar el Código

ES6 for JitsiConnectionErrors

master
Lyubomir Marinov hace 9 años
padre
commit
f40b8957f4
Se han modificado 4 ficheros con 16 adiciones y 21 borrados
  1. 1
    1
      JitsiConnection.js
  2. 13
    18
      JitsiConnectionErrors.js
  3. 1
    1
      JitsiMeetJS.js
  4. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
JitsiConnection.js Ver fichero

@@ -1,7 +1,7 @@
1 1
 var JitsiConference = require("./JitsiConference");
2 2
 var XMPP = require("./modules/xmpp/xmpp");
3
+import * as JitsiConnectionErrors from "./JitsiConnectionErrors";
3 4
 import * as JitsiConnectionEvents from "./JitsiConnectionEvents";
4
-var JitsiConnectionErrors = require("./JitsiConnectionErrors");
5 5
 var Statistics = require("./modules/statistics/statistics");
6 6
 
7 7
 /**

+ 13
- 18
JitsiConnectionErrors.js Ver fichero

@@ -1,21 +1,16 @@
1 1
 /**
2
- * Enumeration with the errors for the connection.
3
- * @type {{string: string}}
2
+ * The errors for the connection.
4 3
  */
5
-var JitsiConnectionErrors = {
6
-    /**
7
-     * Indicates that a password is required in order to join the conference.
8
-     */
9
-    PASSWORD_REQUIRED: "connection.passwordRequired",
10
-    /**
11
-     * Indicates that a connection error occurred when trying to join a
12
-     * conference.
13
-     */
14
-    CONNECTION_ERROR: "connection.connectionError",
15
-    /**
16
-     * Not specified errors.
17
-     */
18
-    OTHER_ERROR: "connection.otherError"
19
-};
20 4
 
21
-module.exports = JitsiConnectionErrors;
5
+/**
6
+ * Indicates that a connection error occurred when trying to join a conference.
7
+ */
8
+export const CONNECTION_ERROR = "connection.connectionError";
9
+/**
10
+ * Not specified errors.
11
+ */
12
+export const OTHER_ERROR = "connection.otherError";
13
+/**
14
+ * Indicates that a password is required in order to join the conference.
15
+ */
16
+export const PASSWORD_REQUIRED = "connection.passwordRequired";

+ 1
- 1
JitsiMeetJS.js Ver fichero

@@ -3,8 +3,8 @@ var AuthUtil = require("./modules/util/AuthUtil");
3 3
 var JitsiConnection = require("./JitsiConnection");
4 4
 var JitsiMediaDevices = require("./JitsiMediaDevices");
5 5
 var JitsiConferenceEvents = require("./JitsiConferenceEvents");
6
+import * as JitsiConnectionErrors from "./JitsiConnectionErrors";
6 7
 import * as JitsiConnectionEvents from "./JitsiConnectionEvents";
7
-var JitsiConnectionErrors = require("./JitsiConnectionErrors");
8 8
 var JitsiConferenceErrors = require("./JitsiConferenceErrors");
9 9
 import * as JitsiMediaDevicesEvents from "./JitsiMediaDevicesEvents";
10 10
 import JitsiTrackError from "./JitsiTrackError";

+ 1
- 1
modules/xmpp/xmpp.js Ver fichero

@@ -6,7 +6,7 @@ var Pako = require("pako");
6 6
 var RandomUtil = require("../util/RandomUtil");
7 7
 var RTCEvents = require("../../service/RTC/RTCEvents");
8 8
 var XMPPEvents = require("../../service/xmpp/XMPPEvents");
9
-var JitsiConnectionErrors = require("../../JitsiConnectionErrors");
9
+import * as JitsiConnectionErrors from "../../JitsiConnectionErrors";
10 10
 import * as JitsiConnectionEvents from "../../JitsiConnectionEvents";
11 11
 var RTC = require("../RTC/RTC");
12 12
 var RTCBrowserType = require("../RTC/RTCBrowserType");

Loading…
Cancelar
Guardar