|
@@ -20,6 +20,9 @@ let systemInfo = {
|
|
|
theme: 'light'
|
|
|
}
|
|
|
|
|
|
+let fixProfileTabAutoTimer = null;
|
|
|
+
|
|
|
+
|
|
|
function twitterPinLogin() {
|
|
|
if (window.location.href == 'https://api.twitter.com/oauth/authorize') {
|
|
|
let code = document.querySelector('code')
|
|
@@ -844,10 +847,7 @@ export function init() {
|
|
|
initBuyNFT();
|
|
|
addJoinedGroupList();
|
|
|
getSysTheme();
|
|
|
-
|
|
|
- addGroupTab()
|
|
|
- fixProfileTabAutoSwitch();
|
|
|
-
|
|
|
+ addGroupTab();
|
|
|
|
|
|
getChromeStorage("popupShowPublishDialog", (res) => {
|
|
|
console.log("popupShowPublishDialog", res);
|
|
@@ -1316,6 +1316,8 @@ export const showTwitterPost = (data) => {
|
|
|
addGroupTab();
|
|
|
}, 2000)
|
|
|
}
|
|
|
+ clearInterval(fixProfileTabAutoTimer);
|
|
|
+ fixProfileTabAutoSwitch();
|
|
|
// addPublishTipsIframe({ type: 'nft' })
|
|
|
}
|
|
|
|
|
@@ -2102,7 +2104,7 @@ const getGroupTabContentNode = () => {
|
|
|
}
|
|
|
|
|
|
const fixProfileTabAutoSwitch = () => {
|
|
|
- setInterval(() => {
|
|
|
+ fixProfileTabAutoTimer = setInterval(() => {
|
|
|
let groupTab = getGroupTabNode();
|
|
|
let tweetTab = document.querySelector('a[aria-selected="true"]');
|
|
|
|