We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Navigator.serviceWorker adalah properti yang hanya bisa dibaca, mengembalikan objek ServiceWorkerContainer untuk dokumen terkait, yang memberikan akses untuk registrasi, penghapusan, upgrade, dan berkomunikasi dengan ServiceWorker.

Sintaks

var workerContainerInstance = navigator.serviceWorker;

Nilai

ServiceWorkerContainer.

Spesifikasi

Spesifikasi Status Comment
Service Workers
The definition of 'navigator.serviceWorker' in that specification.
Working Draft Initial definition.

Kompabilitas Browser

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Fitur Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Dukungan dasar 40.0 44.0 (44.0)[1] No support 24 No support
Fitur Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Dukungan dasar ? 44.0 (44.0) (Yes) No support ? No support ?

[1] Service workers (dan Push) telah di non-aktifkan di Firefox 45 Extended Support Release (ESR.)

Lihat Juga

Tag Dokumen dan Kontributor

Kontributor untuk laman ini: bekti
Terakhir diperbarui oleh: bekti,