moderator-toolbox-nxg-for-reddit / util/ui/notifications

util/ui/notifications

Functions

notification()

notification(title, body, path): Promise<void>

Defined in: extension/data/util/ui/notifications.ts:15

Sends a notification through the background page and auto-clears it after 6 seconds.

Parameters

title

string

Notification title.

body

string

Notification body text.

path

string

URL path the notification links to (relative to location.origin).

Returns

Promise<void>