Navigator: serviceWorker property - Web APIs | MDN

Value

ServiceWorkerContainer.

Examples

This code checks if the browser supports service workers.

js

if ("serviceWorker" in navigator) {
  // Supported!
}

Specifications

Specification
Service Workers Nightly
# navigator-service-worker-attribute

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.