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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user