Closed dgirardi closed 2 years ago
@muuki88 could anyone from highfivve take a look?
@anitaschiller can take at look on Tuesday. She's out of office tomorrow and Monday.
Maybe I have some time tomorrow ☺️
@anitaschiller can take at look on Tuesday. She's out of office tomorrow and Monday.
Maybe I have some time tomorrow ☺️
@dgirardi can you elaborate on this statement?
Fix a bug with all possible template placeholders being incorrectly detected in some situations
@muuki88, can you spot it? :)
const placeholderIndex = (~doc.body.innerHTML.indexOf(placeholder)) ? doc.body.innerHTML.indexOf(placeholder) : (doc.head.innerHTML && doc.head.innerHTML.indexOf(placeholder));
if (~placeholderIndex) {
placeholders.push(placeholderKey);
}
(a refresher, ~(-1) === 0
). If the placeholder is not in body.innerHTML
and head.innerHTML
is falsy, the placeholder was not found but is still added to the list of found placeholders.