Minor code review

This commit is contained in:
Raymond Hill 2024-02-13 16:41:45 -05:00
parent 397d6d47b9
commit d80a3e30f8
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@
activity: noopfn,
virtualPage: noopfn
};
const flickerElm = document.querySelector('[id^=chartbeat-flicker-control]')
if (flickerElm) {
flickerElm.parentNode.removeChild(flickerElm)
const hider = document.querySelector('style[id^=chartbeat-flicker-control]');
if ( hider ) {
hider.remove();
}
})();