Exporting doSearch from classes, and removed unnecesary qdb param

This commit is contained in:
mrfry 2021-03-11 17:23:11 +01:00
parent 14c9df4a62
commit 043e825302
5 changed files with 5 additions and 3 deletions

View file

@ -564,6 +564,7 @@ if (!isMainThread) {
try {
qdbs.forEach((qdb) => {
// FIXME: === 0?
if (searchIn.length === 0 || searchIn.includes(qdb.index)) {
const res = doSearch(
qdb.data,
@ -639,4 +640,5 @@ export {
createQuestion,
addQuestion,
dataToString,
doSearch,
}