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