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(misc) fix typeof comparison to undefined

Pierred6b5687828e9
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index f43fc40805..70476f7a3e 100644
--- a/modules/API/external/external_api.js
+++ b/modules/API/external/external_api.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.
diff --git a/react/features/mobile/watchos/middleware.js b/react/features/mobile/watchos/middleware.js
index 75c5d61f8f..be604078ca 100644
--- a/react/features/mobile/watchos/middleware.js
+++ b/react/features/mobile/watchos/middleware.js
@@ -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;