From 8784acc7e6202d2a5d629fbec0014794c30a204e Mon Sep 17 00:00:00 2001 From: Krille Date: Mon, 12 Aug 2024 09:00:10 +0200 Subject: [PATCH] chore: Disable record on web --- lib/utils/platform_infos.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/platform_infos.dart b/lib/utils/platform_infos.dart index 638c5bcc2..d43176d7a 100644 --- a/lib/utils/platform_infos.dart +++ b/lib/utils/platform_infos.dart @@ -29,7 +29,8 @@ abstract class PlatformInfos { static bool get usesTouchscreen => !isMobile; - static bool get platformCanRecord => (isMobile || isMacOS || isWeb); + /// Web could also record in theory but currently only wav which is too large + static bool get platformCanRecord => (isMobile || isMacOS); static String get clientName => '${AppConfig.applicationName} ${isWeb ? 'web' : Platform.operatingSystem}${kReleaseMode ? '' : 'Debug'}';