We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a8ac7 commit 94c635eCopy full SHA for 94c635e
lib/audio/gbchannel.js
@@ -48,7 +48,9 @@ export default class GbChannelWebAudio {
48
this.audioContext = new (window.AudioContext || window.webkitAudioContext)();
49
50
// Set up our nodes
51
- if (this.audioContext) {
+ // Seems like closure compiler will optimize this out
52
+ // Thus, need to do a very specifc type check if statement here.
53
+ if (!!this.audioContext === true) {
54
this.gainNode = this.audioContext.createGain();
55
}
56
0 commit comments