9 ms·
Doesn't work on Safari. tried it on chrome and clicking on the correct answer has a tendency to not do anything.
by ksherlock 6y ago
Doesn't work on Safari. tried it on chrome and clicking on the correct answer has a tendency to not do anything.
- sergeykish 6y agoClick on correct answer increases the counter. My routine 1. Ctrl-t to hear the sound 2. Ctrl-* to give answer 3. Wrong if hear sound, try again (2) 4. Correct if no sound, take next sound (1) Unfortunately can't check on Safari yet, any errors in console?
- ksherlock 6y ago[Error] Unhandled Promise Rejection: ReferenceError: Can't find variable: AudioContext (anonymous function) (perfect-pitch-ear-training:20) asyncFunctionResume play (perfect-pitch-ear-training:19) (anonymous function) (perfect-pitch-ear-training:29) per MDN, AudioContext() is implemented as webkitAudioContext() in Safari. https://developer.mozilla.org/en-US/docs/Web/API/AudioContext https://developer.mozilla.org/en-US/docs/Web/API/AudioContex...
- sergeykish 6y agoThank you, updated with let AudioContext = window.AudioContext || window.webkitAudioContext