Firefox Tomorrow

web api instance property

BackgroundFetchRegistration: id property

View on MDN ↗

Limited availabilityAvailable in workers

The id read-only property of the BackgroundFetchRegistration interface returns a copy of the background fetch’s ID.

Value

A string.

Examples

Logging the this part to the console returns the identifier set when registering the fetch. In this case, "my-fetch".

console.log(bgFetch.id); // "my-fetch"

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.