some change

This commit is contained in:
Romulus21
2022-01-14 14:48:31 +01:00
parent 7abf0bafa5
commit e9a4550070
10 changed files with 18 additions and 79 deletions

View File

@@ -12,13 +12,13 @@ import {useEffect} from "preact/hooks";
const App = () => {
useEffect(() => {
if (!Notification) {
alert('Le navigateur ne supporte pas les notifications.');
} else if (Notification.permission !== 'granted') {
Notification.requestPermission();
}
}, [])
// useEffect(() => {
// if (!Notification) {
// alert('Le navigateur ne supporte pas les notifications.');
// } else if (Notification.permission !== 'granted') {
// Notification.requestPermission();
// }
// }, [])
return (
<div id="app" class="h-screen overflow-auto flex flex-col">