Fix default state for dialog checkbox

This commit is contained in:
TomatoCake authored and GitHub committed 2024-07-19 19:22:22 +02:00
1 parent 97c264d888
commit f91b79d1a9
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ class Fullscreen{
const checkbox = document.createElement('input');
div.appendChild(checkbox)
const label=document.createElement("span");
checkbox.value=array[2];
checkbox.checked=array[2];
label.textContent=array[1];
div.appendChild(label);
checkbox.addEventListener("change",array[3]);