File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export default function Notifications()
72
72
setLoading ( false ) ;
73
73
74
74
// Vérification de l'existence de l'API de notifications.
75
- if ( typeof Notification !== "undefined" )
75
+ if ( typeof Notification !== "undefined" && filter . length > 0 )
76
76
{
77
77
// Demande de permission pour les notifications.
78
78
const icon : HTMLLinkElement | null =
@@ -86,10 +86,12 @@ export default function Notifications()
86
86
data . forEach ( ( notification ) =>
87
87
{
88
88
const popup = new Notification (
89
- document . title ,
89
+ "Simple File Storage" ,
90
90
{
91
91
icon : icon ?. href ,
92
- body : notification . title
92
+ body : modalMessages (
93
+ `description_${ notification . title } `
94
+ )
93
95
}
94
96
) ;
95
97
@@ -117,7 +119,7 @@ export default function Notifications()
117
119
. slice ( 0 , MAX_NOTIFICATIONS ) ;
118
120
} ) ;
119
121
} ) ;
120
- } , [ router ] ) ;
122
+ } , [ modalMessages , router ] ) ;
121
123
122
124
// Soumission de la requête de marquage de toutes les notifications comme lues.
123
125
const submitClearing = async ( ) =>
You can’t perform that action at this time.
0 commit comments