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",
|
"_from": "websocket-driver@0.6.5",
|
||||||
"_id": "websocket-driver@0.6.5",
|
"_id": "websocket-driver@0.6.5",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
@ -21,9 +28,8 @@
|
|||||||
"/sockjs-client/faye-websocket"
|
"/sockjs-client/faye-websocket"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.6.5.tgz",
|
"_resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.6.5.tgz",
|
||||||
"_shasum": "5cb2556ceb85f4373c6d8238aa691c8454e13a36",
|
"_spec": "0.6.5",
|
||||||
"_spec": "websocket-driver@0.6.5",
|
"_where": "C:\\Users\\ASUS-ROG-NTB\\Disk Google\\git\\VUE_GabenParadise",
|
||||||
"_where": "C:\\Users\\ASUS-ROG-NTB\\Disk Google\\git\\freeGames\\gabenparadise\\node_modules\\sockjs",
|
|
||||||
"author": {
|
"author": {
|
||||||
"name": "James Coglan",
|
"name": "James Coglan",
|
||||||
"email": "jcoglan@gmail.com",
|
"email": "jcoglan@gmail.com",
|
||||||
@ -32,11 +38,9 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/faye/websocket-driver-node/issues"
|
"url": "https://github.com/faye/websocket-driver-node/issues"
|
||||||
},
|
},
|
||||||
"bundleDependencies": false,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"websocket-extensions": ">=0.1.1"
|
"websocket-extensions": ">=0.1.1"
|
||||||
},
|
},
|
||||||
"deprecated": false,
|
|
||||||
"description": "WebSocket protocol handler with pluggable I/O",
|
"description": "WebSocket protocol handler with pluggable I/O",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jstest": "",
|
"jstest": "",
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
<div v-if="once">
|
<div v-if="once">
|
||||||
<div class="alert alert-danger" role="alert">
|
<div class="alert alert-danger" role="alert">
|
||||||
Update Awailible
|
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>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -50,8 +50,8 @@ 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.");
|
||||||
document.dispatchEvent(
|
document.dispatchEvent(
|
||||||
new CustomEvent('swUpdated', { detail: registration })
|
new CustomEvent("swUpdated", { detail: registration })
|
||||||
)
|
);
|
||||||
},
|
},
|
||||||
offline() {
|
offline() {
|
||||||
console.log(
|
console.log(
|
||||||
|
@ -35,11 +35,11 @@ self.addEventListener("notificationclick", function (event) {
|
|||||||
clients.openWindow("/");
|
clients.openWindow("/");
|
||||||
});
|
});
|
||||||
|
|
||||||
self.addEventListener('message', (event) => {
|
self.addEventListener("message", event => {
|
||||||
if (event.data && event.data.type === 'SKIP_WAITING') {
|
if (event.data && event.data.type === "SKIP_WAITING") {
|
||||||
self.skipWaiting()
|
self.skipWaiting();
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
||||||
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
||||||
|
Loading…
Reference in New Issue
Block a user