Skip to content

Commit 0bf5b9e

Browse files
authored
Merge pull request #10 from sagnik150699/codex/deprecation-warning-for-serviceworkerversion
Fix service worker version deprecation
2 parents 03ae31d + 8c0ebf3 commit 0bf5b9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
application. For more information, see:
3535
https://developers.google.com/web/fundamentals/primers/service-workers -->
3636
<script>
37-
var serviceWorkerVersion = null;
37+
// Use the template token so the version is injected at build time.
38+
var serviceWorkerVersion = '{{flutter_service_worker_version}}';
3839
var scriptLoaded = false;
3940
function loadMainDartJs() {
4041
if (scriptLoaded) {

0 commit comments

Comments
 (0)