Quick hack for global app

This commit is contained in:
Simon Cambier
2024-05-18 22:54:12 +02:00
parent e5e62ded85
commit a370041e2f
2 changed files with 10 additions and 5 deletions

View File

@@ -11,7 +11,9 @@ export function setObsidianApp(app: App) {
*/
export function getObsidianApp() {
if (!obsidianApp) {
throw new Error('Obsidian app not set')
// throw new Error('Obsidian app not set')
// console.trace('Obsidian app not set')
return app // FIXME: please.
}
return obsidianApp as App
}