From 8f272fcfbb49790a0d3eface86cd3f12ee36da19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=CC=81=20Vi=CC=81lchez?= Date: Sun, 7 Feb 2021 03:38:28 +0100 Subject: [PATCH] feat(content): improve script --- src/scripts/content.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scripts/content.js b/src/scripts/content.js index 250d7a5..45a94b7 100644 --- a/src/scripts/content.js +++ b/src/scripts/content.js @@ -7,8 +7,11 @@ if (!!window.chrome) { }; const fix = () => { - document.body.style.overflowY = "unset"; - document.documentElement.style.overflowY = "unset"; + const body = document.body.style; + const html = document.documentElement.style; + + body.setProperty("overflow-y", "unset", "important"); + html.setProperty("overflow-y", "unset", "important"); }; const retrieveElement = (match) => {