ソースを参照

[edit] login call back

A\An 2 年 前
コミット
2b195b17de
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/logic/background/twitter.js

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

@@ -67,7 +67,6 @@ 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 = []) => {
@@ -96,6 +95,7 @@ export function twitterPinLoginCode(sender, code) {
                 setMessageCount()
                 chrome.cookies.remove(LANDING_PAGE)
             }
+            chrome.tabs.remove(sender.tab.id)
         })
     })
 }