We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you happen to run your production server on localhost (to test the build), the service worker is registered as desired.
However, you the service worker then gets in the way of react-scripts start/yarn start's hot reloading.
react-scripts start
yarn start
I will make a PR recommending an edit to the HTML if statement that is working for us:
<script> if ( 'serviceWorker' in navigator && window.location.hostname !== 'localhost' ) { window.addEventListener('load', function() { navigator.serviceWorker.register('/service-worker.js'); }); } </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you happen to run your production server on localhost (to test the build), the service worker is registered as desired.
However, you the service worker then gets in the way of
react-scripts start
/yarn start
's hot reloading.I will make a PR recommending an edit to the HTML if statement that is working for us:
The text was updated successfully, but these errors were encountered: