Show "dashboard" icon for excalidraw files

This commit is contained in:
Simon Cambier
2024-06-20 18:34:54 +02:00
parent 6cd777ea73
commit 074a96fcff
4 changed files with 22 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ import { removeAnchors } from './tools/notes'
import type { IndexedDocument } from './globals'
import {
isFileCanvas,
isFileFromDataloomPlugin,
isFileFromDataloom,
isFileImage,
isFilePDF,
logDebug,
@@ -49,7 +49,7 @@ export class NotesIndexer {
return (
this.isFilePlaintext(path) ||
isFileCanvas(path) ||
isFileFromDataloomPlugin(path) ||
isFileFromDataloom(path) ||
(canIndexPDF && isFilePDF(path)) ||
(canIndexImages && isFileImage(path))
)
@@ -60,7 +60,7 @@ export class NotesIndexer {
this.canIndexUnsupportedFiles() ||
this.isFilePlaintext(path) ||
isFileCanvas(path) ||
isFileFromDataloomPlugin(path)
isFileFromDataloom(path)
)
}