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

@@ -164,6 +164,7 @@ export class OmnisearchVaultModal extends OmnisearchModal {
const cmp = new ModalVault({
target: this.modalEl,
props: {
app,
modal: this,
previousQuery: query || selectedText || previous || '',
},
@@ -189,6 +190,7 @@ export class OmnisearchInFileModal extends OmnisearchModal {
const cmp = new ModalInFile({
target: this.modalEl,
props: {
app,
modal: this,
singleFilePath: file.path,
parent: parent,