Closed ktye closed 2 years ago
is that correct? https://github.com/JohnEarnest/ok/blob/gh-pages/ike/audio.js#L45
if (!audio) { if (typeof AudioContext !== 'undefined') { // ^^^ audio = new AudioContext(); } else if (typeof webkitAudioContext !== 'undefined') { audio = new webkitAudioContext(); } }
shouldn't it be typeof AudioContext === 'undefined' ?
typeof AudioContext === 'undefined'
If the class is not undefined, I want to produce an instance of it.
is that correct? https://github.com/JohnEarnest/ok/blob/gh-pages/ike/audio.js#L45
shouldn't it be
typeof AudioContext === 'undefined'
?