diff --git a/browser.js b/browser.js new file mode 100644 index 00000000..f540f01d --- /dev/null +++ b/browser.js @@ -0,0 +1,14 @@ +Browser = { + isCompatible: function() { + return this._supportsAudioApi() && this._supportsCanvas(); + }, + + _supportsAudioApi: function() { + return !!(window.AudioContext || window.webkitAudioContext); + }, + _supportsCanvas: function() { + return !!document.createElement('canvas').getContext; + } + +} + diff --git a/index.html b/index.html index 81997624..e3136ab6 100755 --- a/index.html +++ b/index.html @@ -80,6 +80,10 @@ +
Your browser does not support the features we need
+Try using the most recent version of Chrome, Firefox or Safari
+by @captbaritone - @@ -87,6 +91,7 @@
+ @@ -95,5 +100,23 @@ +