February 2018
Intermediate to advanced
298 pages
8h 22m
English
It is easy to check whether a client's browser supports service workers or not:
if('serviceWorker' in navigator) { // service worker available // lets code}
Here, I'll assume that a service worker is available in the user's browser, to avoid unnecessary code indentations every time.
Read now
Unlock full access