mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-03 04:26:36 +08:00
refactor: split modules and harden scraping workflows
This commit is contained in:
@@ -5,8 +5,11 @@ import { Toaster } from 'react-hot-toast'
|
||||
|
||||
import App from './App'
|
||||
import { GlobalEvents } from './components/GlobalEvents'
|
||||
import { initializeThemeMode } from './components/useThemeMode'
|
||||
import './index.css'
|
||||
|
||||
initializeThemeMode()
|
||||
|
||||
if ('serviceWorker' in navigator && import.meta.env.PROD) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/artwork-cache-sw.js').catch(() => undefined)
|
||||
|
||||
Reference in New Issue
Block a user