push notifications
This commit is contained in:
10
index.html
10
index.html
@@ -164,6 +164,16 @@
|
||||
.catch((err) => console.log("Service Worker Failed", err));
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
// Request notification permission on page load
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
if ('Notification' in window) {
|
||||
Notification.requestPermission().then(permission => {
|
||||
console.log('Notification permission:', permission);
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<footer class="app-footer">
|
||||
<div class="author-info">
|
||||
<p>Vibe coded by Martin</p>
|
||||
|
||||
Reference in New Issue
Block a user