Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: some exports to make it work with webpack 2

hristoterezovc8c44d62eddd
diff --git a/app.js b/app.js
index 470420d0d0..091d40d5d9 100644
--- a/app.js
+++ b/app.js
@@ -1,65 +1,44 @@
/* application specific logic */
-import "jquery";
-import "jquery-contextmenu";
-import "jquery-ui";
-import "strophe";
-import "strophe-disco";
-import "jQuery-Impromptu";
-import "autosize";
+import 'jquery';
+import 'jquery-contextmenu';
+import 'jquery-ui';
+import 'strophe';
+import 'strophe-disco';
+import 'jQuery-Impromptu';
+import 'autosize';
import 'aui';
import 'aui-experimental';
import 'aui-css';
import 'aui-experimental-css';
-window.toastr = require("toastr");
+window.toastr = require('toastr');
export conference from './conference';
export API from './modules/API';
export keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
-export remoteControl from "./modules/remotecontrol/RemoteControl";
-export settings from "./modules/settings/Settings";
-export translation from "./modules/translation/translation";
-export UI from "./modules/UI/UI";
-
-/**
- * After the APP has been initialized provides utility methods for dealing
- * with the conference room URL(address).
- * @type ConferenceUrl
- */
-export let ConferenceUrl = null;
-
-// Used by do_external_connect.js if we receive the attach data after
-// connect was already executed. status property can be "initialized",
-// "ready" or "connecting". We are interested in "ready" status only which
-// means that connect was executed but we have to wait for the attach data.
-// In status "ready" handler property will be set to a function that will
-// finish the connect process when the attach data or error is received.
+export remoteControl from './modules/remotecontrol/RemoteControl';
+export settings from './modules/settings/Settings';
+export translation from './modules/translation/translation';
+export UI from './modules/UI/UI';
+
+// Used by do_external_connect.js if we receive the attach data after connect
+// was already executed. status property can be 'initialized', 'ready', or
+// 'connecting'. We are interested in 'ready' status only which means that
+// connect was executed but we have to wait for the attach data. In status
+// 'ready' handler property will be set to a function that will finish the
+// connect process when the attach data or error is received.
export const connect = {
- status: "initialized",
- handler: null
+ handler: null,
+ status: 'initialized'
};
-export let connection = null;
-
// Used for automated performance tests
export const connectionTimes = {
- "index.loaded": window.indexLoadedTime
+ 'index.loaded': window.indexLoadedTime
};
-/**
- * The log collector which captures JS console logs for this app.
- * @type {LogCollector}
- */
-export let logCollector = null;
-
-/**
- * Indicates if the log collector has been started (it will not be started
- * if the welcome page is displayed).
- */
-export let logCollectorStarted = false;
-
// TODO The execution of the mobile app starts from react/index.native.js.
// Similarly, the execution of the Web app should start from react/index.web.js
// for the sake of consistency and ease of understanding. Temporarily though
diff --git a/modules/util/JitsiMeetLogStorage.js b/modules/util/JitsiMeetLogStorage.js
index 7d130191b5..d04c64d48d 100644
--- a/modules/util/JitsiMeetLogStorage.js
+++ b/modules/util/JitsiMeetLogStorage.js
@@ -21,7 +21,7 @@ export default class JitsiMeetLogStorage {
* <tt>false</tt> otherwise.
*/
isReady() {
- return APP.logCollectorStarted && APP.conference;
+ return Boolean(APP.logCollectorStarted && APP.conference);
}
/**
diff --git a/react/features/jwt/index.js b/react/features/jwt/index.js
index 3354f4deb3..44000a1a7b 100644
--- a/react/features/jwt/index.js
+++ b/react/features/jwt/index.js
@@ -1,4 +1,5 @@
export * from './actions';
+export * from './actionTypes';
export * from './components';
export * from './functions';