|
@@ -30,11 +30,11 @@ function twitterPinLogin() {
|
|
|
if (pin_login) {
|
|
|
return
|
|
|
}
|
|
|
- pin_login = true
|
|
|
if (window.location.href == 'https://api.twitter.com/oauth/authorize') {
|
|
|
let code = document.querySelector('code')
|
|
|
|
|
|
if (code) {
|
|
|
+ pin_login = true
|
|
|
chrome.runtime.sendMessage({ actionType: "CONTENT_SEND_CODE", code: code.innerText }, () => { })
|
|
|
// port.postMessage({ state: 'CONTENT_SEND_CODE', code: code.innerText })
|
|
|
}
|
|
@@ -981,9 +981,9 @@ function onPageVisbile() {
|
|
|
}
|
|
|
|
|
|
const depositUSShowPopupPage = async () => {
|
|
|
- let {form = '', path} = await getChromeStorage('achPayData') || {};
|
|
|
- if(form == 'popupPage') {
|
|
|
- showPopupPage({path});
|
|
|
+ let { form = '', path } = await getChromeStorage('achPayData') || {};
|
|
|
+ if (form == 'popupPage') {
|
|
|
+ showPopupPage({ path });
|
|
|
chrome.storage.local.remove("achPayData");
|
|
|
}
|
|
|
}
|