mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
fix setting mime after import + cleanup of old search code
This commit is contained in:
@@ -176,7 +176,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain
|
||||
* @returns {Promise<NoteShort[]>}
|
||||
*/
|
||||
this.searchForNotes = async searchString => {
|
||||
const noteIds = await this.runOnServer(async searchString => {
|
||||
const noteIds = await this.runOnBackend(async searchString => {
|
||||
const notes = await api.searchForNotes(searchString);
|
||||
|
||||
return notes.map(note => note.noteId);
|
||||
|
||||
Reference in New Issue
Block a user