Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 89731ae

Browse files
authored
Intercept SystemSound.play platform message before it's sent. (#13342)
Fixes flutter/flutter#43462
1 parent 2250c74 commit 89731ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/web_ui/lib/src/engine/window.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ class EngineWindow extends ui.Window {
141141
domRenderer.setTitle(arguments['label']);
142142
domRenderer.setThemeColor(ui.Color(arguments['primaryColor']));
143143
return;
144+
case 'SystemSound.play':
145+
// There are no default system sounds on web.
146+
return;
144147
}
145148
break;
146149

0 commit comments

Comments
 (0)