Update Function
This commit is contained in:
parent
7167d86285
commit
d34dde916e
14
node_modules/websocket-driver/package.json
generated
vendored
14
node_modules/websocket-driver/package.json
generated
vendored
@ -1,4 +1,11 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"websocket-driver@0.6.5",
|
||||
"C:\\Users\\ASUS-ROG-NTB\\Disk Google\\git\\VUE_GabenParadise"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "websocket-driver@0.6.5",
|
||||
"_id": "websocket-driver@0.6.5",
|
||||
"_inBundle": false,
|
||||
@ -21,9 +28,8 @@
|
||||
"/sockjs-client/faye-websocket"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.6.5.tgz",
|
||||
"_shasum": "5cb2556ceb85f4373c6d8238aa691c8454e13a36",
|
||||
"_spec": "websocket-driver@0.6.5",
|
||||
"_where": "C:\\Users\\ASUS-ROG-NTB\\Disk Google\\git\\freeGames\\gabenparadise\\node_modules\\sockjs",
|
||||
"_spec": "0.6.5",
|
||||
"_where": "C:\\Users\\ASUS-ROG-NTB\\Disk Google\\git\\VUE_GabenParadise",
|
||||
"author": {
|
||||
"name": "James Coglan",
|
||||
"email": "jcoglan@gmail.com",
|
||||
@ -32,11 +38,9 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/faye/websocket-driver-node/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"websocket-extensions": ">=0.1.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "WebSocket protocol handler with pluggable I/O",
|
||||
"devDependencies": {
|
||||
"jstest": "",
|
||||
|
@ -3,7 +3,9 @@
|
||||
<div v-if="once">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
Update Awailible
|
||||
<button type="button" class="btn btn-primary" v-on:click="refreshApp">Refresh</button>
|
||||
<button type="button" class="btn btn-primary" v-on:click="refreshApp">
|
||||
Refresh
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -50,8 +50,8 @@ if (process.env.NODE_ENV === "production") {
|
||||
updated(registration) {
|
||||
console.log("New content is available; please refresh.");
|
||||
document.dispatchEvent(
|
||||
new CustomEvent('swUpdated', { detail: registration })
|
||||
)
|
||||
new CustomEvent("swUpdated", { detail: registration })
|
||||
);
|
||||
},
|
||||
offline() {
|
||||
console.log(
|
||||
|
@ -35,11 +35,11 @@ self.addEventListener("notificationclick", function (event) {
|
||||
clients.openWindow("/");
|
||||
});
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
if (event.data && event.data.type === 'SKIP_WAITING') {
|
||||
self.skipWaiting()
|
||||
self.addEventListener("message", event => {
|
||||
if (event.data && event.data.type === "SKIP_WAITING") {
|
||||
self.skipWaiting();
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
||||
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
||||
|
Loading…
Reference in New Issue
Block a user