소스 검색

fix(misc) fix typeof comparison to undefined

master
Pierre 3 년 전
부모
커밋
d6b5687828
No account linked to committer's email address
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      modules/API/external/external_api.js
  2. 1
    1
      react/features/mobile/watchos/middleware.js

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

Loading…
취소
저장