Skip to content

Commit

Permalink
Intercept SystemSound.play platform message before it's sent. (flutte…
Browse files Browse the repository at this point in the history
  • Loading branch information
ditman committed Oct 25, 2019
1 parent 2250c74 commit 89731ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/web_ui/lib/src/engine/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89731ae

Please sign in to comment.