Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix Indexing do not work on electron by switched off web service

sytolk5acbbce7d50b
diff --git a/src/renderer/services/utils-io.ts b/src/renderer/services/utils-io.ts
index 20ec550ad..20db4d904 100644
--- a/src/renderer/services/utils-io.ts
+++ b/src/renderer/services/utils-io.ts
@@ -534,11 +534,12 @@ export function createDirectoryIndex(
}
let listDirectoryPromise;
- let loadTextFilePromise;
+ //let loadTextFilePromise;
if (PlatformIO.haveObjectStoreSupport()) {
listDirectoryPromise = PlatformIO.listObjectStoreDir;
- // eslint-disable-next-line prefer-destructuring
- loadTextFilePromise = PlatformIO.loadTextFilePromise;
+ //loadTextFilePromise = PlatformIO.loadTextFilePromise;
+ } else {
+ listDirectoryPromise = PlatformIO.listDirectoryPromise;
}
const mode = ['extractThumbPath'];
if (extractText) {
@@ -547,7 +548,7 @@ export function createDirectoryIndex(
return createIndex(
param,
listDirectoryPromise,
- loadTextFilePromise,
+ PlatformIO.loadTextFilePromise,
mode,
ignorePatterns,
)