Explorar o código

[edit] login call back

A\An %!s(int64=2) %!d(string=hai) anos
pai
achega
360a974a4c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
         })
     })
 }