mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix lint errors
This commit is contained in:
parent
7d9acf30b6
commit
4730a30c3d
29 changed files with 53 additions and 23 deletions
|
@ -36,6 +36,7 @@ function handleConnectionResult(page, result) {
|
|||
|
||||
function submitServer(page) {
|
||||
loading.show();
|
||||
// eslint-disable-next-line sonarjs/slow-regex
|
||||
const host = page.querySelector('#txtServerHost').value.replace(/\/+$/, '');
|
||||
ServerConnections.connectToAddress(host, {
|
||||
enableAutoLogin: appSettings.enableAutoLogin()
|
||||
|
|
|
@ -292,6 +292,7 @@ export default function (view, params) {
|
|||
apiClient.getJSON(apiClient.getUrl('Branding/Configuration')).then(function (options) {
|
||||
const loginDisclaimer = view.querySelector('.loginDisclaimer');
|
||||
|
||||
// eslint-disable-next-line sonarjs/disabled-auto-escaping
|
||||
loginDisclaimer.innerHTML = DOMPurify.sanitize(markdownIt({ html: true }).render(options.LoginDisclaimer || ''));
|
||||
|
||||
for (const elem of loginDisclaimer.querySelectorAll('a')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue