Skip to content

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

[RN] Fix use of undefined APP

Saúl Ibarra Corretgé5b6985fc5c19
diff --git a/react/features/app/components/AbstractApp.js b/react/features/app/components/AbstractApp.js
index 7e1a0c25e6..6fbd2c3ef4 100644
--- a/react/features/app/components/AbstractApp.js
+++ b/react/features/app/components/AbstractApp.js
@@ -307,7 +307,9 @@ export class AbstractApp extends Component {
// non-reactified parts of the code (conference.js for example).
// Don't use in the react code!!!
// FIXME: remove when the reactification is finished!
- APP.store = store;
+ if (typeof APP !== 'undefined') {
+ APP.store = store;
+ }
}
return store;
diff --git a/react/features/base/conference/middleware.js b/react/features/base/conference/middleware.js
index 728b8c34fb..6aea2219fc 100644
--- a/react/features/base/conference/middleware.js
+++ b/react/features/base/conference/middleware.js
@@ -56,7 +56,7 @@ function _connectionEstablished(store, next, action) {
// FIXME: workaround for the web version. Currently the creation of the
// conference is handled by /conference.js
- if (!APP) {
+ if (typeof APP === 'undefined') {
store.dispatch(createConference());
}