diff --git a/main.ts b/main.ts index 5288ddc..1fe1ecf 100644 --- a/main.ts +++ b/main.ts @@ -152,7 +152,7 @@ export default class ObsidianSpotify extends Plugin { return false; } }; - if(checkConnection()) { + if(await checkConnection()) { let event = new CustomEvent("online"); document.dispatchEvent(event) } else {