Commit add9341
fix(ui): reuse AudioContext for mobile notification sound
Mobile browsers require AudioContext to be created or resumed during a
user gesture. Create it once on the first click/touch and reuse it for
all subsequent notification sounds.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent fbed57f commit add9341
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3134 | 3134 | | |
3135 | 3135 | | |
3136 | 3136 | | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
3137 | 3149 | | |
3138 | 3150 | | |
3139 | | - | |
| 3151 | + | |
3140 | 3152 | | |
3141 | 3153 | | |
3142 | 3154 | | |
| |||
3147 | 3159 | | |
3148 | 3160 | | |
3149 | 3161 | | |
3150 | | - | |
3151 | 3162 | | |
3152 | 3163 | | |
3153 | 3164 | | |
| |||
0 commit comments