mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
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:
parent
fce90c07c9
commit
9f8e98b68c
@ -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>
|
||||
|
@ -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');
|
||||
|
@ -1,9 +1,9 @@
|
||||
.disclaimerContainer {
|
||||
.loginDisclaimerContainer {
|
||||
display: flex;
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.disclaimer {
|
||||
.loginDisclaimer {
|
||||
margin: 0 auto;
|
||||
|
||||
h1,
|
||||
|
Loading…
Reference in New Issue
Block a user