Cleaned some warnings from the deprecated global app object

This commit is contained in:
Simon Cambier
2023-11-01 14:51:07 +01:00
parent 8832ce7b78
commit 1e6478d83e
7 changed files with 26 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import InputSearch from './InputSearch.svelte'
import {
Action,
Action,
eventBus,
excerptAfter,
type ResultNote,
@@ -9,7 +9,7 @@
} from 'src/globals'
import { getCtrlKeyLabel, loopIndex } from 'src/tools/utils'
import { onDestroy, onMount, tick } from 'svelte'
import { MarkdownView } from 'obsidian'
import { MarkdownView, App } from 'obsidian'
import ModalContainer from './ModalContainer.svelte'
import {
OmnisearchInFileModal,
@@ -24,6 +24,7 @@
export let parent: OmnisearchVaultModal | null = null
export let singleFilePath = ''
export let previousQuery: string | undefined
export let app: App
let searchQuery: string
let groupedOffsets: number[] = []