Use childNodes instead of children (#1638)

This commit is contained in:
toasted-nutbread 2021-04-28 22:07:11 -04:00 committed by GitHub
parent 0a7def1c01
commit 69a739f00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ class PermissionsOriginController {
const menuButton = node.querySelector('.permissions-origin-button');
input.value = origin;
this._eventListeners.addEventListener(menuButton, 'menuClose', this._onOriginMenuClose.bind(this, origin), false);
this._originContainerChildren.push(...node.children);
this._originContainerChildren.push(...node.childNodes);
fragment.appendChild(node);
any = true;
}