Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
(No Update) Fixed 2 Alerts Popping Up.
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseWx2011 authored Mar 28, 2024
1 parent 6de2cb6 commit b5ee2b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ async function litening() {
});
setTimeout(() => { notification.close() }, 5000);
alertaudio.innerHTML = `<audio controls autoplay><source src="${liteningaudio}"></audio>`
alert("Lightning Alert", {
body: `Lightning struck ${response[0].relativeTo.distanceMI} miles (${response[0].relativeTo.distanceKM} km) ${response[0].relativeTo.bearingENG} of this Location in ${city}.`,
icon: "lightning.svg",
})
}};
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
alert(`Lightning struck ${response[0].relativeTo.distanceMI} miles (${response[0].relativeTo.distanceKM} km) ${response[0].relativeTo.bearingENG} of this Location in ${city}.`)
}

litening()
}
}
}
notifyMe()

0 comments on commit b5ee2b9

Please sign in to comment.