Browse Source

fix location of web-push unsubscribe action

kb/add-usage-guide
Trent Larson 12 months ago
parent
commit
2c33febb0e
  1. 9
      src/App.vue
  2. 2
      sw_scripts/additional-scripts.js

9
src/App.vue

@ -230,15 +230,16 @@
</p>
<button
@click="
close(notification.id);
turnOffNotifications();
"
class="block w-full text-center text-md font-bold uppercase bg-rose-600 text-white px-2 py-2 rounded-md mb-2"
>
Turn Off Notifications
</button>
<button
@click="
close(notification.id);
turnOffNotifications();
"
@click="close(notification.id)"
class="block w-full text-center text-md font-bold uppercase bg-slate-600 text-white px-2 py-2 rounded-md"
>
Leave it On

2
sw_scripts/additional-scripts.js

@ -5,7 +5,7 @@ importScripts(
);
self.addEventListener("install", (event) => {
console.error("Adding event listener for:", event);
console.log("Adding event listener for:", event);
importScripts(
"safari-notifications.js",
"nacl.js",

Loading…
Cancel
Save