Fix: offsetParent -> parentNode
This commit is contained in:
parent
eb3077d906
commit
b0b1ed7e02
|
@ -143,12 +143,12 @@ function Embed(El) {
|
|||
async function toggle(state) {
|
||||
if (state) {
|
||||
if (!el) el = El();
|
||||
if (!el.offsetParent) {
|
||||
if (!el.parentNode) {
|
||||
document.body.append(el);
|
||||
}
|
||||
el.focus();
|
||||
} else {
|
||||
if (!el || !el.offsetParent) return;
|
||||
if (!el || !el.parentNode) return;
|
||||
if (el.contentDocument) {
|
||||
el.contentDocument.body.classList.add('scaleout');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user