update
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<link rel="manifest" href="<%= htmlWebpackPlugin.options.path %>/manifest.json">
|
||||
<link rel="manifest" href="<%= htmlWebpackPlugin.options.pwaPath %>/manifest.json">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<title>vue-element-admin</title>
|
||||
@@ -15,7 +15,7 @@
|
||||
</body>
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('<%= htmlWebpackPlugin.options.path %>/sw.js').then(function(registration) {
|
||||
navigator.serviceWorker.register('<%= htmlWebpackPlugin.options.pwaPath %>/sw.js').then(function(registration) {
|
||||
// Registration Success
|
||||
console.log('[serviceWorker]: registration successful with scope: ', registration.scope)
|
||||
}).catch(function(err) {
|
||||
|
Reference in New Issue
Block a user