Skip to content

Commit 332fb6f

Browse files
committed
Fixed window global check.
1 parent 30b5630 commit 332fb6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sound/SoundManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Phaser.SoundManager.prototype = {
265265
*/
266266
setTouchLock: function () {
267267

268-
if (this.noAudio || window['PhaserGlobal'].disableAudio === true)
268+
if (this.noAudio || (window['PhaserGlobal'] && window['PhaserGlobal'].disableAudio === true))
269269
{
270270
return;
271271
}

0 commit comments

Comments
 (0)