From 9bd8fb83e8e0dcb66ee66325a46622e461a9d7b4 Mon Sep 17 00:00:00 2001 From: wanhose Date: Thu, 25 Nov 2021 13:16:31 +0100 Subject: [PATCH] feat(scripts): content performance improvements --- scripts/content.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/content.js b/scripts/content.js index 10dc72c..cd1b7e9 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -29,13 +29,14 @@ const hostname = document.location.hostname; * @description Is consent preview page? */ -const isPreview = hostname.startsWith("consent."); +const isPreview = + hostname.startsWith("consent.") || hostname.startsWith("myprivacy."); /** * @description Options provided to observer */ -const options = { attributes: true, childList: true, subtree: true }; +const options = { childList: true, subtree: true }; /** * @description Selectors list