From fd10a04b39bfc7674159b52a456059fdbc015599 Mon Sep 17 00:00:00 2001
From: Pierre Ranwez <pierre.ranwez.etu@univ-lille.fr>
Date: Fri, 25 Feb 2022 14:17:30 +0100
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20bug:=20pure=20css=20when=20off?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 content.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content.js b/content.js
index 95d2d7b..829158a 100644
--- a/content.js
+++ b/content.js
@@ -481,8 +481,8 @@ function audioEvent() {
 }
 
 function pureCss() {
-    chrome.storage.local.get(['all'], function (result) {
-        if (result.all.length > 0) {
+    chrome.storage.local.get(['all', 'activate'], function (result) {
+        if (result.all.length > 0 && activate) {
             const elements = document.getElementsByClassName('CSSLSD');
             while(elements.length > 0){
                 elements[0].parentNode.removeChild(elements[0]);
-- 
GitLab