-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
Current Build Setup serve from http://localhost:8080/
but in entry-server.js
is
// service worker
if ('https:' === location.protocol && navigator.serviceWorker) {
navigator.serviceWorker.register('/service-worker.js')
}
There is problem with 'https:' === location.protocol
on localhost.
Is this check really needed? It introduce unnecessary complexity of need serving from https
on localhost. If you remove this check and run on http
not on localhost it will simple throw an error - for me this should be expected behaviour (developer will easily spot this problem) .
Metadata
Metadata
Assignees
Labels
No labels