wenliming 2 лет назад
Родитель
Сommit
e6102abf78
1 измененных файлов с 6 добавлено и 6 удалено
  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';
         }
     }
 }