Rename login disclaimer

disclaimerContainer is confused by adblockers using the
"I don't care about cookies" filters with cookie disclaimers.
This results in the disclaimer being blocked when using popular
AdBlocker Extensions.
This commit renames
disclaimerContainer -> loginDisclaimerContainer
disclaimer -> loginDisclaimer
to be more verbose and circumvent that filter
This commit is contained in:
Merlin Danner 2023-01-08 04:41:43 +01:00 committed by Bill Thornton
parent fce90c07c9
commit 9f8e98b68c
3 changed files with 7 additions and 7 deletions

View File

@ -50,8 +50,8 @@
<span>${ButtonChangeServer}</span>
</button>
<div class="disclaimerContainer">
<div class="disclaimer"></div>
<div class="loginDisclaimerContainer">
<div class="loginDisclaimer"></div>
</div>
</div>
</div>

View File

@ -284,11 +284,11 @@ import './login.scss';
loading.hide();
});
apiClient.getJSON(apiClient.getUrl('Branding/Configuration')).then(function (options) {
const disclaimer = view.querySelector('.disclaimer');
const loginDisclaimer = view.querySelector('.loginDisclaimer');
disclaimer.innerHTML = DOMPurify.sanitize(marked(options.LoginDisclaimer || ''));
loginDisclaimer.innerHTML = DOMPurify.sanitize(marked(options.LoginDisclaimer || ''));
for (const elem of disclaimer.querySelectorAll('a')) {
for (const elem of loginDisclaimer.querySelectorAll('a')) {
elem.rel = 'noopener noreferrer';
elem.target = '_blank';
elem.classList.add('button-link');

View File

@ -1,9 +1,9 @@
.disclaimerContainer {
.loginDisclaimerContainer {
display: flex;
margin-top: 2em;
}
.disclaimer {
.loginDisclaimer {
margin: 0 auto;
h1,