mirror of
https://github.com/SoPat712/Speeder.git
synced 2026-10-08 19:05:02 -04:00
change from tabs to spaces
This commit is contained in:
1 parent
20a15f8da5
commit
91cf313f52
1 file changed
+12
-12
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user