# HG changeset patch # User Nicholas Jillings # Date 1428513497 -3600 # Node ID 6ff6de6a0fa2e2e601a90968fee58480ff4f055f # Parent b7b85431df500a524d184dc344e2aa35ee935afc Added cross-browser support for webkit / non-webkit audioContext. Confirmed Chrome & Safari Support. Firefox: does not support innerText or dragging! diff -r b7b85431df50 -r 6ff6de6a0fa2 core.js --- a/core.js Wed Apr 08 10:57:43 2015 +0100 +++ b/core.js Wed Apr 08 18:18:17 2015 +0100 @@ -16,7 +16,8 @@ // This should perform any initial commands such as structure / loading documents // Create a web audio API context - // NORE: Currently this will only work with webkit browsers (Chrome/Safari)! + // Fixed for cross-browser support + var AudioContext = window.AudioContext || window.webkitAudioContext; audioContext = new AudioContext; // Create the audio engine object