Device.webAudio check inversed to avoid throwing a warning in Chrome.

This commit is contained in:
Richard Davey 2015-01-01 21:38:02 +00:00
parent ebe2b35936
commit da27373c90
2 changed files with 2 additions and 1 deletions

View file

@ -83,6 +83,7 @@ Version 2.2.2 - "Alkindar" - in development
* Tween.stop fired a different set of onComplete parameters to Tween.update. Both now dispatch onComplete(target, tween) as the parameters in that order (thanks @P0rnflake #1450)
* Removed redundant `tolerance` parameter from Rectangle.intersects (thanks @toolness #1463)
* Phaser.Graphics.drawCircle now overrides PIXI.drawCircle which means the docs are now correct re: diameter not radius (thanks @ethankaminski #1454)
* Device.webAudio check inversed to avoid throwing a warning in Chrome.
### Bug Fixes

View file

@ -880,7 +880,7 @@ Phaser.Device._initialize = function () {
function _checkAudio () {
device.audioData = !!(window['Audio']);
device.webAudio = !!(window['webkitAudioContext'] || window['AudioContext']);
device.webAudio = !!(window['AudioContext'] || window['webkitAudioContext']);
var audioElement = document.createElement('audio');
var result = false;