We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4106f7e commit 39cf725Copy full SHA for 39cf725
1 file changed
src/sound/webaudio/WebAudioSoundManager.js
@@ -156,9 +156,12 @@ var WebAudioSoundManager = new Class({
156
});
157
};
158
159
- document.body.addEventListener('touchstart', unlock, false);
160
- document.body.addEventListener('touchend', unlock, false);
161
- document.body.addEventListener('click', unlock, false);
+ if (document.body)
+ {
+ document.body.addEventListener('touchstart', unlock, false);
162
+ document.body.addEventListener('touchend', unlock, false);
163
+ document.body.addEventListener('click', unlock, false);
164
+ }
165
},
166
167
/**
0 commit comments