You need to manually call navigator.serviceWorker.register('sw.js')