Browse Source

[edit]style

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

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

@@ -1350,9 +1350,9 @@ export const showPopupPage = (params = {}) => {
         let overlay = document.getElementById('de-popup-overlay');
         overlay.style.display = 'block';
 
-        let body = document.querySelector('body');
-        if(body) {
-            body.style.overflowY = 'hidden';
+        let htmlDom = document.querySelector('html');
+        if(htmlDom) {
+            htmlDom.style.overflowY = 'hidden';
         }
     }
 }
@@ -1365,9 +1365,9 @@ export const hidePopupPage = () => {
         let overlay = document.getElementById('de-popup-overlay');
         overlay.style.display = 'none';
 
-        let body = document.querySelector('body');
-        if(body) {
-            body.style.overflowY = 'auto';
+        let htmlDom = document.querySelector('html');
+        if(htmlDom) {
+            htmlDom.style.overflowY = 'auto';
         }
     }
 }