mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
Merge branch 'soru/fix-web-serverpicker' into 'main'
fix: Web server picker See merge request ChristianPauly/fluffychat-flutter!232
This commit is contained in:
commit
4bf3861553
@ -16,8 +16,8 @@ import 'package:random_string/random_string.dart';
|
||||
Future<LocalStorage> getLocalStorage() async {
|
||||
final directory = PlatformInfos.isBetaDesktop
|
||||
? await getApplicationSupportDirectory()
|
||||
: await getApplicationDocumentsDirectory();
|
||||
final localStorage = LocalStorage('LocalStorage', directory.path);
|
||||
: (PlatformInfos.isWeb ? null : await getApplicationDocumentsDirectory());
|
||||
final localStorage = LocalStorage('LocalStorage', directory?.path);
|
||||
await localStorage.ready;
|
||||
return localStorage;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user