Skip to content

Commit

Permalink
Fixed "ReferenceError: Can't find variable: AudioContext" in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
charasyn authored and juchi committed Aug 14, 2019
1 parent dd7b564 commit 2eeed5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sound/apu.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var APU = function(memory) {
this.memory = memory;
this.enabled = false;

AudioContext = window.AudioContext || window.webkitAudioContext;
var AudioContext = window.AudioContext || window.webkitAudioContext;
var audioContext = new AudioContext();

this.channel1 = new GameboyJS.Channel1(this, 1, audioContext);
Expand Down

0 comments on commit 2eeed5e

Please sign in to comment.