Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeydarrenlau authored Jun 22, 2024
1 parent 30d21c1 commit 1160f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default class ObsidianSpotify extends Plugin {
return false;
}
};
if(checkConnection()) {
if(await checkConnection()) {

Check failure on line 155 in main.ts

View workflow job for this annotation

GitHub Actions / build

'await' expressions are only allowed within async functions and at the top levels of modules.
let event = new CustomEvent("online");
document.dispatchEvent(event)
} else {
Expand Down

0 comments on commit 1160f01

Please sign in to comment.