Browse Source

[edit] login call back

A\An 2 years ago
parent
commit
360a974a4c
1 changed files with 1 additions and 1 deletions
  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)
         })
     })
 }