1283712 - Part 11.1: Show notes in devtools console.

This commit is contained in:
Gaming4JC 2019-06-09 14:52:19 -04:00 committed by Roy Tam
commit 9f71d02fcf
7 changed files with 87 additions and 4 deletions

View file

@ -126,6 +126,15 @@ function matchSearchFilters(message, filters) {
|| (message.parameters !== null
&& message.parameters.join("").toLocaleLowerCase()
.includes(text.toLocaleLowerCase()))
// Look for a match in notes.
|| (Array.isArray(message.notes) && message.notes.some(note =>
// Look for a match in location.
isTextInFrame(text, note.frame)
// Look for a match in messageBody.
|| (note.messageBody !== null
&& note.messageBody.toLocaleLowerCase()
.includes(text.toLocaleLowerCase()))
))
);
}