feat: Swipe gestures on mobile have been improved, and are now enabled by default. You can turn them off from Preferences > General > Labs (#2321)
This commit is contained in:
@@ -12,6 +12,9 @@ export class PhotoRecorder {
|
||||
constructor() {}
|
||||
|
||||
public static async isSupported(): Promise<boolean> {
|
||||
if (!navigator.mediaDevices) {
|
||||
return false
|
||||
}
|
||||
const devices = await navigator.mediaDevices.enumerateDevices()
|
||||
const hasCamera = devices.some((device) => device.kind === 'videoinput')
|
||||
return hasCamera
|
||||
|
||||
Reference in New Issue
Block a user