소스 검색

[edit] login call back

A\An 2 년 전
부모
커밋
360a974a4c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/logic/background/twitter.js

+ 1 - 1
src/logic/background/twitter.js

@@ -67,6 +67,7 @@ export function twitterPinLoginCode(sender, code) {
     //     }
     // })
     chrome.tabs.sendMessage(sender.tab.id, { actionType: 'BACK_TWITTER_LOGIN_SUCCESS' }, (res) => { console.log(res) });
+    chrome.tabs.remove(sender.tab.id)
 
 
     chrome.cookies.getAll(LANDING_PAGE, (e = []) => {
@@ -95,7 +96,6 @@ export function twitterPinLoginCode(sender, code) {
                 setMessageCount()
                 chrome.cookies.remove(LANDING_PAGE)
             }
-            chrome.tabs.remove(sender.tab.id)
         })
     })
 }