Skip to content

Commit

Permalink
doc: GM_notification: silent and onclick behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Aug 7, 2023
1 parent 9beb392 commit ceac07a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content/api/gm.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,13 @@ Shows an HTML5 desktop notification.
URL of an image to show in the notification.
- <Field name="silent?" type="boolean" comment="since VM2.15.2, Chrome 70" defaultValue="false" />
No sounds/vibrations when showing the notification. Only for Chromium-based browsers as of Aug 2023.
- <Field name="onclick?" type="() => void" />
Callback when the notification is clicked by user.
Callback when the notification is clicked by user. As of VM2.15.2 it also forces the notification to be visible until clicked in Chrome which by default hides the notification after a few seconds.
- <Field name="ondone?" type="() => void" />
Expand Down

0 comments on commit ceac07a

Please sign in to comment.