A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/WorkerNavigator/clearAppBadge below:

WorkerNavigator: clearAppBadge() method - Web APIs

WorkerNavigator: clearAppBadge() method

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The clearAppBadge() method of the WorkerNavigator interface clears a badge on the current app's icon by setting it to nothing. The value nothing indicates that no badge is currently set, and the status of the badge is cleared.

Syntax Parameters

None.

Return value

A Promise that resolves with undefined.

Exceptions
InvalidStateError DOMException

Thrown if the document is not fully active.

SecurityError DOMException

Thrown if the call was blocked by the same-origin policy.

NotAllowedError DOMException

Thrown if PermissionStatus.state is not granted.

Examples

Once all messages in an application have been read, call clearAppBadge() to clear the badge and remove the notification.

navigator.clearAppBadge();
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4