blob: b5663529fb70de3c23c12a321ac86b6c0f60f2ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
---
title: Notification.badge
slug: Web/API/notification/badge
tags:
- API Notification
- API badge
- Notification
- Notifications
- Propriété
- Reference
translation_of: Web/API/Notification/badge
---
{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}
La propriété **`badge`** de l'interface {{domxref ("Notification")}} renvoie l'URL de l'image utilisée pour représenter la notification lorsqu'il n'y a pas assez d'espace pour afficher la notification elle-même.
## Syntaxe
const url = Notification.badge
### Valeur
Une {{domxref('USVString')}} contenant une URL.
## Spécifications
| Spécification | État | Commentaire |
| ---------------------------------------------------------------------------------------- | ---------------------------------------- | -------------------- |
| {{SpecName('Web Notifications','#dom-notification-badge','badge')}} | {{Spec2('Web Notifications')}} | Définition initiale. |
## Compatibilité des navigateurs
{{Compat("api.Notification.badge")}}
|