modify postMessage text
This commit is contained in:
parent
2101e42661
commit
343af0a437
@ -21,7 +21,7 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
},
|
},
|
||||||
updated (registration) {
|
updated (registration) {
|
||||||
console.log('New content is available; please refresh.')
|
console.log('New content is available; please refresh.')
|
||||||
let confirmationResult = confirm("New content found! Do you want to reload the app?")
|
let confirmationResult = confirm("New version found! Do you want to reload the app?")
|
||||||
if (confirmationResult) registration.waiting.postMessage({action: "skipWaiting"})
|
if (confirmationResult) registration.waiting.postMessage({action: "skipWaiting"})
|
||||||
},
|
},
|
||||||
offline () {
|
offline () {
|
||||||
|
Loading…
Reference in New Issue
Block a user