Skip to content

Commit

Permalink
Make function async to allow await call within
Browse files Browse the repository at this point in the history
  • Loading branch information
steinbro authored Jan 4, 2024
1 parent d6150eb commit 0ebf444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ document.addEventListener('DOMContentLoaded', function () {
// When mode button is clicked:
// If a mode is currently active, end that mode
// If mode button was different from current mode, start new mode
function toggleMode(newMode) {
async function toggleMode(newMode) {
// required for iOS Safari: first speech must be directly triggered by user action
playSpatialSpeech(' ');

Expand Down

0 comments on commit 0ebf444

Please sign in to comment.