mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Letters are cheap
This commit is contained in:
parent
ea3fce138b
commit
09f5415df4
1 changed files with 2 additions and 2 deletions
|
|
@ -158,13 +158,13 @@ export function findDescendantByTypeAndId(node, type, id) {
|
|||
return null;
|
||||
}
|
||||
|
||||
const idLC = id.toLowerCase();
|
||||
const lowerCaseId = id.toLowerCase();
|
||||
for (let i = 0; i < node.children.length; i++) {
|
||||
const child = node.children[i];
|
||||
if (
|
||||
(!type || child.name === type) &&
|
||||
(child.attributes.id !== undefined &&
|
||||
child.attributes.id.toLowerCase() === idLC)
|
||||
child.attributes.id.toLowerCase() === lowerCaseId)
|
||||
) {
|
||||
return child;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue