Pārlūkot izejas kodu

fix(misc) fix typeof comparison to undefined

master
Pierre 4 gadus atpakaļ
vecāks
revīzija
d6b5687828
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 1
- 1
modules/API/external/external_api.js Parādīt failu

@@ -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 Parādīt failu

@@ -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;

Notiek ielāde…
Atcelt
Saglabāt