Explorar o código

[edit] login call back

A\An %!s(int64=2) %!d(string=hai) anos
pai
achega
2b195b17de
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,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)
         })
     })
 }