feat: synchronisation mode deconnecte fin chat et stats
This commit is contained in:
24
app/lib/core/utils/html_stub.dart
Normal file
24
app/lib/core/utils/html_stub.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
// Stub pour les plateformes non-web
|
||||
class Window {
|
||||
Navigator? get navigator => null;
|
||||
CacheStorage? get caches => null;
|
||||
}
|
||||
|
||||
class Navigator {
|
||||
ServiceWorkerContainer? get serviceWorker => null;
|
||||
}
|
||||
|
||||
class ServiceWorkerContainer {
|
||||
Future<List<ServiceWorkerRegistration>>? getRegistrations() => null;
|
||||
}
|
||||
|
||||
class ServiceWorkerRegistration {
|
||||
Future<bool> unregister() => Future.value(false);
|
||||
}
|
||||
|
||||
class CacheStorage {
|
||||
Future<List<String>> keys() => Future.value([]);
|
||||
Future<bool> delete(String name) => Future.value(false);
|
||||
}
|
||||
|
||||
final Window window = Window();
|
||||
Reference in New Issue
Block a user