Intercept SystemSound.play platform message before it's sent. (flutter/engine#13342)

Fixes https://github.com/flutter/flutter/issues/43462
This commit is contained in:
David Iglesias 2019-10-25 12:24:36 -07:00 committed by GitHub
parent 70232834ac
commit 791ae7a4a2

View File

@ -141,6 +141,9 @@ class EngineWindow extends ui.Window {
domRenderer.setTitle(arguments['label']);
domRenderer.setThemeColor(ui.Color(arguments['primaryColor']));
return;
case 'SystemSound.play':
// There are no default system sounds on web.
return;
}
break;