Woops
This commit is contained in:
@@ -14,7 +14,7 @@ if you want to view the source visit the plugins github repository
|
||||
*/
|
||||
`
|
||||
|
||||
const production = false//!process.env.ROLLUP_WATCH
|
||||
const production = !process.env.ROLLUP_WATCH
|
||||
|
||||
export default {
|
||||
input: './src/main.ts',
|
||||
|
||||
@@ -85,7 +85,6 @@ export default class OmnisearchPlugin extends Plugin {
|
||||
}
|
||||
|
||||
onunload(): void {
|
||||
console.log('Omnisearch - Interrupting PDF indexing')
|
||||
NotesIndex.processQueue.clearQueue()
|
||||
}
|
||||
|
||||
@@ -131,6 +130,7 @@ async function populateIndex(): Promise<void> {
|
||||
|
||||
// Load PDFs into the main search engine, and write cache
|
||||
SearchEngine.loadTmpDataIntoMain()
|
||||
SearchEngine.isIndexing.set(false)
|
||||
await tmpEngine.writeToCache()
|
||||
|
||||
// Clear memory
|
||||
|
||||
Reference in New Issue
Block a user