add service worker and progressive web app and icons

This commit is contained in:
Esteban Abaroa
2023-04-24 21:20:42 +00:00
parent 6315d9c48d
commit e946a93847
14 changed files with 237 additions and 34 deletions
+5 -1
View File
@@ -3,6 +3,7 @@ import ReactDOM from 'react-dom/client';
import App from './App';
import { HelmetProvider } from 'react-helmet-async';
import { HashRouter } from 'react-router-dom';
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
import PlebbitJs from '@plebbit/plebbit-js';
// inject native functions into renderer
@@ -20,4 +21,7 @@ root.render(
</HashRouter>
</HelmetProvider>
</React.StrictMode>
);
);
// set up PWA https://cra.link/PWA
serviceWorkerRegistration.register();