Unchecked toogle-all if no instances are available #190

This commit is contained in:
ManeraKai 2022-04-24 10:47:57 +03:00
parent 4765cebc7d
commit df7b47a51a
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ async function processDefaultCustomInstances(
}
for (const element of nameCheckListElement.getElementsByTagName('input'))
element.checked = nameDefaultRedirects.includes(element.className)
if (nameDefaultRedirects.length == 0) isTrue = false;
nameProtocolElement.getElementsByClassName('toogle-all')[0].checked = isTrue;
}