Explorar o código

[bugfix]group-tab auto focus

jihuaqiang %!s(int64=2) %!d(string=hai) anos
pai
achega
b343790aab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/logic/content/twitter.js

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

@@ -1977,7 +1977,7 @@ const hiddenMaskWeb3Tab = (count) => {
  * 跳转到个人主页 检查是否需要选中 Group tab
  */
 const checkNeedSelectGroupTab = () => {
-    if (window.location.pathname != '/home') {
+    if (window.location.pathname != '/home' && !document.hidden) {
         setTimeout(() => {
             getChromeStorage('groupTabData', (res) => {
                 console.log('groupTabData', res);