[flutter_tools] don't force service worker cache files to be absolute (#52606)

This commit is contained in:
Jonah Williams
2020-03-17 10:17:03 -07:00
committed by GitHub
parent 69fbbef2fe
commit a7011c4817
3 changed files with 22 additions and 14 deletions

View File

@@ -12,11 +12,11 @@ found in the LICENSE file. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Flutter Gallery">
<link rel="apple-touch-icon" href="/icons/Icon-192.png">
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<link rel="shortcut icon" type="image/png" href="favicon.png"/>
<title>Flutter Gallery</title>
<link rel="manifest" href="/manifest.json">
<link rel="manifest" href="manifest.json">
</head>
<body>
<!-- This script installs service_worker.js to provide PWA functionality to
@@ -25,7 +25,7 @@ found in the LICENSE file. -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/flutter_service_worker.js');
navigator.serviceWorker.register('flutter_service_worker.js');
});
}
</script>