Переглянути джерело

fix(misc) fix typeof comparison to undefined

factor2
Pierre 3 роки тому
джерело
коміт
d6b5687828
Аккаунт користувача з таким Email не знайдено

+ 1
- 1
modules/API/external/external_api.js Переглянути файл

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

+ 1
- 1
react/features/mobile/watchos/middleware.js Переглянути файл

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

Завантаження…
Відмінити
Зберегти