diff --git a/packages/browser-extension/src/manifest.json b/packages/browser-extension/src/manifest.json index 4b7741f..089f8fe 100644 --- a/packages/browser-extension/src/manifest.json +++ b/packages/browser-extension/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Cookie Dialog Monster", - "version": "7.0.0", + "version": "7.0.1", "default_locale": "en", "description": "__MSG_appDesc__", "icons": { diff --git a/packages/browser-extension/src/scripts/content.js b/packages/browser-extension/src/scripts/content.js index b437061..394b08d 100644 --- a/packages/browser-extension/src/scripts/content.js +++ b/packages/browser-extension/src/scripts/content.js @@ -106,17 +106,15 @@ function forceClean(element) { */ function forceElementStyles(mutations, observer) { for (const mutation of mutations) { - if (mutation.type === 'attributes' && dataAttributeName === mutation.attributeName) { - const element = mutation.target; - const value = element.getAttribute(dataAttributeName); + const element = mutation.target; + const value = element.getAttribute(dataAttributeName); - if (value === null) { - observer.disconnect(); - element.removeAttribute(dataAttributeName); - element.style.removeProperty('display'); - } else { - element.style.setProperty('display', 'none', 'important'); - } + if (value === null) { + observer.disconnect(); + element.removeAttribute(dataAttributeName); + element.style.removeProperty('display'); + } else { + element.style.setProperty('display', 'none', 'important'); } } }