This commit is contained in:
cracklesparkle
2024-07-19 14:43:58 +09:00
parent a3043afa7b
commit 53e9a8cadf
25 changed files with 8 additions and 197 deletions

View File

@ -3,7 +3,6 @@ import React, { useEffect } from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import { registerSW } from 'virtual:pwa-register'
import { ThemeProvider } from '@emotion/react'
import { createTheme } from '@mui/material'
import { ruRU } from '@mui/material/locale'
@ -51,17 +50,6 @@ const lightTheme = createTheme(
ruRU,
);
const updateSW = registerSW({
onNeedRefresh() {
if (confirm("New content available. Reload?")) {
updateSW(true);
}
},
onOfflineReady() {
console.log("offline ready");
},
});
function ThemedApp() {
const prefStore = usePrefStore()