From 91cf313f52ccc5d5a2f7bcfa9af3ea2dabfa2d48 Mon Sep 17 00:00:00 2001 From: Jonathan Dawson Date: Thu, 21 Nov 2019 17:03:40 -0600 Subject: [PATCH] change from tabs to spaces --- inject.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/inject.js b/inject.js index 34fa731..98223f4 100644 --- a/inject.js +++ b/inject.js @@ -330,22 +330,22 @@ } } function getShadow(parent) { - let result = [] - function getChild(parent) { - if (parent.firstElementChild) { - var child = parent.firstElementChild + let result = [] + function getChild(parent) { + if (parent.firstElementChild) { + var child = parent.firstElementChild do { result = result.concat(child) - getChild(child) - if (child.shadowRoot) { - result = result.concat(getShadow(child.shadowRoot)) - } + getChild(child) + if (child.shadowRoot) { + result = result.concat(getShadow(child.shadowRoot)) + } child = child.nextElementSibling } while (child) - } - } - getChild(parent) - return result + } + } + getChild(parent) + return result } function initializeNow(document) {