mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Device.webAudio check inversed to avoid throwing a warning in Chrome.
This commit is contained in:
parent
ebe2b35936
commit
da27373c90
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue