Browse Source

[edit] style

wenliming 2 years ago
parent
commit
f122b50b9f
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/logic/content/twitter.js

+ 7 - 1
src/logic/content/twitter.js

@@ -1304,7 +1304,13 @@ export const showTwitterPost = (data) => {
     })
     let groupTab = getGroupTabNode();
     if (groupTab) {
-        groupTab.click();
+        let line = groupTab.querySelector('#de-tab-line');
+        if(line) {
+            let {display} = line.style;
+            if(display != 'none') {
+                groupTab.click();
+            }
+        }
     } else {
         setTimeout(() => {
             addGroupTab();