We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db51129 commit 371c9ddCopy full SHA for 371c9dd
1 file changed
js/consent.js
@@ -20,10 +20,12 @@ function getDelegatedLogin() {
20
*
21
*/
22
function hideLogins() {
23
- const mainTags = document.getElementsByTagName('main')
24
- if (mainTags !== null) {
25
- mainTags[0].style.visibility = 'hidden'
26
- }
+ const wrapper = document.querySelector('.wrapper');
+ if (!wrapper) return;
+
+ Array.from(wrapper.children).forEach(child => {
27
+ child.style.visibility = 'hidden';
28
+ });
29
}
30
31
/**
0 commit comments