Skip to content

Commit 4117813

Browse files
committed
chore: remove deprecated manual worker registration for Flutter web and the non-existent lib/generated_plugin_registrant.dart gitignore item
1 parent 244c952 commit 4117813

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
lib/generated/
3535
**/*.g.dart
3636

37-
# Web related
38-
lib/generated_plugin_registrant.dart
39-
4037
# Symbolication related
4138
app.*.symbols
4239

web/index.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040
application. For more information, see:
4141
https://developers.google.com/web/fundamentals/primers/service-workers -->
4242
<script>
43-
if ('serviceWorker' in navigator) {
44-
window.addEventListener('flutter-first-frame', function () {
45-
navigator.serviceWorker.register('flutter_service_worker.js');
46-
});
47-
}
43+
{{flutter_bootstrap_js}}
4844
</script>
4945
<script src="main.dart.js" type="application/javascript"></script>
5046
</body>

0 commit comments

Comments
 (0)