fix(misc) fix typeof comparison to undefined

pull/9675/head jitsi-meet_6157
Pierre 4 years ago committed by GitHub
parent 6b496d4def
commit d6b5687828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/API/external/external_api.js
  2. 2
      react/features/mobile/watchos/middleware.js

@ -170,7 +170,7 @@ function parseArguments(args) {
switch (typeof firstArg) {
case 'string': // old arguments format
case undefined: {
case 'undefined': {
// Not sure which format but we are trying to parse the old
// format because if the new format is used everything will be undefined
// anyway.

@ -98,7 +98,7 @@ function _appWillMount({ dispatch, getState }) {
switch (command) {
case CMD_HANG_UP:
if (typeof getCurrentConferenceUrl(getState()) !== undefined) {
if (typeof getCurrentConferenceUrl(getState()) !== 'undefined') {
dispatch(appNavigate(undefined));
}
break;

Loading…
Cancel
Save