[flutter_tools] don't force service worker cache files to be absolute (#52606)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user