Merge pull request #27 from DEVTomatoCake/patch-2

Fix default state for dialog checkbox
This commit is contained in:
MathMan05
2024-07-19 20:50:16 -05:00
committed by GitHub

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]);