feat: Swipe gestures on mobile are now enabled by default and have been improved. You can disable them from Preferences > General > Labs (#2319)
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