diff --git a/assets/js/lib/webkit-audiocontext-patch.js b/assets/js/lib/webkit-audiocontext-patch.js index 2270658..a8e8bc1 100644 --- a/assets/js/lib/webkit-audiocontext-patch.js +++ b/assets/js/lib/webkit-audiocontext-patch.js @@ -46,10 +46,10 @@ module.exports = function(){ Object.defineProperty(OscillatorNode.prototype, "type", { get: function() { - return ["sine", "square", "sawtooth", "triangle", "custom"][this.type]; + return ["sine", "square", "sawtooth", "triangle", "custom"][this._type]; }, set: function(type) { - this.type = OscillatorNode.prototype[type.toUpperCase()] || type; + this._type = OscillatorNode.prototype[type.toUpperCase()] || type; } }); }