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
commit 62a4637453
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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