mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
[RN] Fix use of undefined APP
On RN we don't use the global APP object, so don't save the store there unless it's defined, which is the case in the current web version. Also, check for undefined explicitly, since a "if (!APP)" check will throw a ReferenceError.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user