-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(main.js): add async/await for better error handling and readability
This commit refactors main.js to use async/await for better error handling and readability. It specifically modifies the initiateAudioPlay, sendRequest, checkAudioStatus, and playAudioWhenReady functions to use async/await. It also adds error handling to fetch calls in the checkAudioStatus and initiateAudioPlay functions.
- Loading branch information
1 parent
803340a
commit 937d69e
Showing
1 changed file
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters