From 69a739f00a335496e9222b4758d9c8bf2190df92 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 28 Apr 2021 22:07:11 -0400 Subject: Use childNodes instead of children (#1638) --- ext/js/pages/settings/permissions-origin-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/js/pages/settings/permissions-origin-controller.js b/ext/js/pages/settings/permissions-origin-controller.js index adb4c1d9..d7ba0494 100644 --- a/ext/js/pages/settings/permissions-origin-controller.js +++ b/ext/js/pages/settings/permissions-origin-controller.js @@ -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; } -- cgit v1.2.3