Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMillett committed Nov 13, 2024
1 parent 58d5577 commit 5a9bbc3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion wwwroot/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ self.addEventListener('install', event => {

self.addEventListener('activate', event => {
console.log('Service Worker Activated');

console.log("SHAKE DA PHONE");
navigator.vibrate([20000, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]);
console.log(navigator.userAgent);


event.waitUntil(self.clients.claim());
});

Expand All @@ -14,8 +20,10 @@ self.addEventListener('fetch', event => {
{
try
{

const response = await fetch(event.request);



return response;

} catch (error)
Expand Down

0 comments on commit 5a9bbc3

Please sign in to comment.