Use childNodes instead of children (#1638)
This commit is contained in:
parent
0a7def1c01
commit
69a739f00a
@ -71,7 +71,7 @@ class PermissionsOriginController {
|
|||||||
const menuButton = node.querySelector('.permissions-origin-button');
|
const menuButton = node.querySelector('.permissions-origin-button');
|
||||||
input.value = origin;
|
input.value = origin;
|
||||||
this._eventListeners.addEventListener(menuButton, 'menuClose', this._onOriginMenuClose.bind(this, origin), false);
|
this._eventListeners.addEventListener(menuButton, 'menuClose', this._onOriginMenuClose.bind(this, origin), false);
|
||||||
this._originContainerChildren.push(...node.children);
|
this._originContainerChildren.push(...node.childNodes);
|
||||||
fragment.appendChild(node);
|
fragment.appendChild(node);
|
||||||
any = true;
|
any = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user