diff --git a/DEV.md b/DEV.md
index 5fba48f..edad2b5 100644
--- a/DEV.md
+++ b/DEV.md
@@ -111,3 +111,13 @@ flutter drive \
--target=integration_test/app_test.dart \
-d emu
```
+
+## Run chrome device
+
+Starts the app on chrome on a fixed port:
+
+
+```
+flutter run -d chrome --web-port=$DEF_PORT --web-browser-flag "--disable-web-security"
+```
+
diff --git a/lib/main.dart b/lib/main.dart
index 22a224e..429ec96 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -1,3 +1,4 @@
+import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:camera/camera.dart';
import 'package:chemobile/app.dart';
import 'package:flutter/material.dart';
@@ -12,7 +13,9 @@ void main() async {
cameras = await availableCameras();
final storage = await HydratedStorage.build(
- storageDirectory: await getApplicationDocumentsDirectory(),
+ storageDirectory: kIsWeb
+ ? HydratedStorage.webStorageDirectory
+ : await getApplicationDocumentsDirectory(),
);
HydratedBloc.storage = storage;
diff --git a/web/index.html b/web/index.html
index bafb241..c7c2ced 100644
--- a/web/index.html
+++ b/web/index.html
@@ -36,69 +36,7 @@
-
- if ('serviceWorker' in navigator) {
- // Service workers are supported. Use them.
- window.addEventListener('load', function () {
- // Wait for registration to finish before dropping the