fix: Web server picker

This commit is contained in:
Sorunome 2020-10-21 12:05:35 +02:00
parent d0635d9dd4
commit 4cb19be8ad
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}