Skip to content

Commit 663461d

Browse files
committed
Fix for new insider build
1 parent f7d9ac4 commit 663461d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

exampleVault/Input Fields/Image Suggester.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
image: Other/Images/img_flower.webp
2+
image: Other/Images/img_butterfly.webp
33
---
44

55
```meta-bind

src/utils/Utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,6 @@ export function pathJoin(path1: string, path2: string): string {
176176
}
177177

178178
export function imagePathToUri(imagePath: string): string {
179-
return `app://local/${pathJoin(getVaultBasePath() ?? '', imagePath)}`;
179+
// return `app://local/${pathJoin(getVaultBasePath() ?? '', imagePath)}`;
180+
return app.vault.adapter.getResourcePath(imagePath);
180181
}

0 commit comments

Comments
 (0)