mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update PWA
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user