# HG changeset patch # User Nicholas Jillings # Date 1428513497 -3600 # Node ID f38946647666690c250bbb8af7b2bc2c77e33968 # Parent d24dc7fd97aeaaf5eafd8a859b4ae64130de3a41 Added cross-browser support for webkit / non-webkit audioContext. Confirmed Chrome & Safari Support. Firefox: does not support innerText or dragging! diff -r d24dc7fd97ae -r f38946647666 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