mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-07 21:56:44 +01:00
emscripten-pre-js: remove autoplay workaround
It didn't work with recent emscripten versions anyway. A better fix is coming to emscripten's SDL port.
This commit is contained in:
parent
4fe091d93c
commit
d753279764
1 changed files with 0 additions and 9 deletions
|
@ -3,12 +3,3 @@ if (!Module) Module = (typeof Module !== 'undefined' ? Module : null) || {};
|
|||
// Disable image and audio decoding
|
||||
Module.noImageDecoding = true;
|
||||
Module.noAudioDecoding = true;
|
||||
|
||||
// autoplay workaround
|
||||
document.addEventListener("click", function() {
|
||||
try {
|
||||
if (!SDL2 || !SDL2.audioContext || !SDL2.audioContext.resume) return;
|
||||
SDL2.audioContext.resume();
|
||||
} catch (err) {}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue