mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-10 12:53:54 -04:00
Update search.scanCount correctly
Former-commit-id: c60309cbd9d027a464433885bc8e1c2ea9cbf6d8
This commit is contained in:
parent
9ed97a219f
commit
b2bc9dae1c
@ -475,6 +475,7 @@ define(['zimfile', 'zimDirEntry', 'transformZimit', 'util', 'uiUtil', 'utf8'],
|
|||||||
// Collect all the paths for full text search, pruning as we go
|
// Collect all the paths for full text search, pruning as we go
|
||||||
var path;
|
var path;
|
||||||
for (var j = 0; j < results.entries.length; j++) {
|
for (var j = 0; j < results.entries.length; j++) {
|
||||||
|
search.scanCount++;
|
||||||
path = results.entries[j].path;
|
path = results.entries[j].path;
|
||||||
// Full-text search result paths are missing the namespace in Type 1 ZIMs, so we add it back
|
// Full-text search result paths are missing the namespace in Type 1 ZIMs, so we add it back
|
||||||
path = cns === 'C' ? cns + '/' + path : path;
|
path = cns === 'C' ? cns + '/' + path : path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user