瀏覽代碼

[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 }, () => { })
     })
 }