Remove hostname handler

This commit is contained in:
Alex Thomassen 2022-08-25 16:19:54 +02:00
parent 06c835f7b6
commit f87b1b5f4a

View File

@ -153,24 +153,6 @@ const toggleButton = {
},
};
function appendSonarrHostnames()
{
const names = icsUrls.map(item => item.name);
for (const name of names) {
const rows = document.querySelectorAll(`.${name}`);
for (const row of rows) {
const lastCell = row.querySelector('td:last-child');
const hostname = document.createElement('span');
hostname.className = 'float-end';
hostname.textContent = name;
lastCell.insertAdjacentElement('beforeend', hostname);
}
}
}
async function loadSonarrCalendar(shouldScroll = false)
{
const calendarElement = document.querySelector('#sonarr-calendar');
@ -209,8 +191,6 @@ async function loadSonarrCalendar(shouldScroll = false)
const message = document.querySelector('#status-message');
try {
calendar.render();
appendSonarrHostnames();
if (message) {
message.remove();