HomePhabricator

[Cashtab] [service worker fix p2] install create react app default serviceā€¦

Description

[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

Details

Provenance
bytesofmanAuthored on Sep 21 2022, 15:45
bytesofmanPushed on Sep 22 2022, 19:57
Reviewer
Restricted Project
Differential Revision
D12021: [Cashtab] [service worker fix p2] install create react app default service worker
Parents
rABC2fd5a30a67bc: [Cashtab] [service worker fix p1] remove cache-first service worker
Branches
Unknown
Tags
Unknown