Przeglądaj źródła

fix(misc) fix typeof comparison to undefined

master
Pierre 3 lat temu
rodzic
commit
d6b5687828
No account linked to committer's email address

+ 1
- 1
modules/API/external/external_api.js Wyświetl plik

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

+ 1
- 1
react/features/mobile/watchos/middleware.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz