TF-3956 Add try/catch for get config cozy to avoid print exception when change responsive on web

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-08-08 17:03:38 +07:00
committed by Dat H. Pham
parent 3b444a5af9
commit ff66953c78
@@ -14,7 +14,11 @@ class CozyConfigManager {
}
Future<bool> get isInsideCozy async {
return _isInsideCozy ??= await _checkCozyEnvironment();
try {
return _isInsideCozy ??= await _checkCozyEnvironment();
} catch (e) {
return false;
}
}
Future<bool> _checkCozyEnvironment() async {