소스 검색

[edit] catch

wenliming 2 년 전
부모
커밋
d11dc6a323
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/logic/content/twitter.js

+ 2 - 0
src/logic/content/twitter.js

@@ -1089,6 +1089,8 @@ export const getTweetUserFollowStatus = (params) => {
         }
 
         chrome.runtime.sendMessage({ actionType: 'CONTENT_GET_TWEET_USER_FOLLOW_STATUS_RES', data: list, tweetId, type: params.type, iframeId: params.iframeId }, () => { })
+    }).catch(err => {
+      chrome.runtime.sendMessage({ actionType: 'CONTENT_GET_TWEET_USER_FOLLOW_STATUS_RES', data: [], tweetId, type: params.type, iframeId: params.iframeId }, () => { })
     })
 }