Skip to content

API > wxt/browser > Browser > notifications > update

Function: update()

update(notificationId, options, callback?): void

Updates an existing notification.

Parameters

notificationId: string

The id of the notification to be updated. This is returned by notifications.create method.

options: NotificationOptions<false>

Contents of the notification to update to.

callback?: (wasUpdated) => void

Called to indicate whether a matching notification existed. The callback is required before Chrome 42.

Source

packages/browser/src/gen/index.d.ts:7161


Generated using typedoc-plugin-markdown and TypeDoc