Fix media lightbox and sleep target
This commit is contained in:
@@ -1658,6 +1658,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (lightbox.parentElement !== document.body) {
|
||||
document.body.appendChild(lightbox);
|
||||
}
|
||||
|
||||
const close = () => {
|
||||
lightbox.setAttribute("hidden", "hidden");
|
||||
content.replaceChildren();
|
||||
|
||||
Reference in New Issue
Block a user