Use the platform property for ios detection (#3360)

This commit is contained in:
Timo
2025-06-24 14:25:05 +02:00
committed by GitHub
parent 6b6b679774
commit 337d09cd4d
2 changed files with 4 additions and 4 deletions

View File

@@ -27,5 +27,5 @@ On mobile platforms (iOS, Android), web views do not reliably support selecting
Callbacks for buttons in EC that are handled by the native application
- `showNativeAudioDevicePicker: (() => void) | undefined`. Callback called whenever the user presses the output button in the settings menu.
This button is only shown on iOS. (`userAgent.includes("iPhone")`)
This button is only shown on iOS. (`/iPad|iPhone|iPod|Mac/.test(navigator.userAgent)`)
- `onBackButtonPressed: (() => void) | undefined`. Callback when the webview detects a tab on the header's back button.