New Icons & Credits
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<!--Notification Bar-->
|
||||
<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>
|
||||
<div class="alert alert-danger d-flex justify-content-between" role="alert">
|
||||
<div class="align-self-center">Update availible!</div>
|
||||
<div>
|
||||
<button type="button" class="btn btn-primary" v-on:click="refreshApp">Refresh</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@@ -23,10 +23,13 @@ self.addEventListener("push", function(event) {
|
||||
|
||||
self.addEventListener("notificationclick", function(event) {
|
||||
if (event.notification) {
|
||||
if (data.data) {
|
||||
if (event.notification.data) {
|
||||
var data = JSON.parse(event.notification.data.data);
|
||||
if (data[event.action]) {
|
||||
console.log(data);
|
||||
console.log(data);
|
||||
|
||||
|
||||
console.log(data[event.action]);
|
||||
clients.openWindow("" + data[event.action]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user