File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ static int MusicHTML5_Open(const SDL_AudioSpec *spec)
213
213
if (!(audio instanceof HTMLMediaElement ))
214
214
return ;
215
215
216
- console . error ("Error " + audio .error .code + "; details: " + audio .error .message );
216
+ Module [ "printErr" ] ("Error " + audio .error .code + "; details: " + audio .error .message );
217
217
218
218
// Reset to defaults
219
219
this .resetMusicState (audio );
@@ -351,7 +351,7 @@ static void *MusicHTML5_CreateFromFile(const char *file)
351
351
if (isValidUrl (file ))
352
352
url = file ;
353
353
else {
354
- console . error (`URL $ {url } is invalid `);
354
+ Module [ "printErr" ] (`URL $ {url } is invalid `);
355
355
return -1 ;
356
356
}
357
357
}
@@ -418,9 +418,9 @@ static int MusicHTML5_Play(void *context, int play_count)
418
418
419
419
// Older browsers do not return a Promise
420
420
if (played )
421
- played .catch ((e ) = > console . error (e ));
421
+ played .catch ((e ) = > Module [ "printErr" ] (e ));
422
422
} catch (e ) {
423
- console . error (e );
423
+ Module [ "printErr" ] (e );
424
424
return -1 ;
425
425
}
426
426
return 0 ;
You can’t perform that action at this time.
0 commit comments