update PWA

This commit is contained in:
Tom (plebeius.eth)
2025-03-08 22:32:45 +01:00
parent 27bdd0f26e
commit 327a463939
5 changed files with 102 additions and 236 deletions
-4
View File
@@ -7,7 +7,6 @@ import './lib/init-translations';
import './index.css';
import './themes.css';
import { App as CapacitorApp } from '@capacitor/app';
import * as serviceWorkerRegistration from './service-worker-registration';
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
@@ -18,9 +17,6 @@ root.render(
</React.StrictMode>,
);
// set up PWA https://cra.link/PWA
serviceWorkerRegistration.register();
// add back button in android app
CapacitorApp.addListener('backButton', ({ canGoBack }) => {
if (canGoBack) {