Navigator: serviceWorker property - Web APIs | MDN
Value
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 |