[Cashtab] [service worker fix p2] install create react app default service worker
Summary:
T2684
Depends on D12020
This diff replaces the service worker removed in D12020 with the create react app default service worker.
Test Plan:
Review https://create-react-app.dev/docs/making-a-progressive-web-app/
This diff was created by running npx create-react-app my-app --template cra-template-pwa and then copying the relevant service worker files. Confirm that the files match, with the exception that index.js has been modified to register the service worker.
npm start
In the dev console, navigate to 'Application' and 'Service Workers." Note that there is no service worker as the new serviceWorkerRegistration.js disables service workers for localhost.
Navigate to https://632b314c324c805f8240173f--cashtab-local-dev.netlify.app/#/wallet where this app has been deployed at this commit. Note that there is a service worker enabled.
Reviewers: #bitcoin_abc, emack
Reviewed By: #bitcoin_abc, emack
Subscribers: emack
Differential Revision: https://reviews.bitcoinabc.org/D12021