mirror of
https://github.com/siteboon/claudecodeui.git
synced 2025-12-11 10:49:37 +00:00
23 lines
637 B
JavaScript
23 lines
637 B
JavaScript
import React from 'react'
|
|
import ReactDOM from 'react-dom/client'
|
|
import App from './App.jsx'
|
|
import './index.css'
|
|
import 'katex/dist/katex.min.css'
|
|
|
|
// Clean up stale service workers on app load to prevent caching issues after builds
|
|
if ('serviceWorker' in navigator) {
|
|
navigator.serviceWorker.getRegistrations().then(registrations => {
|
|
registrations.forEach(registration => {
|
|
registration.unregister();
|
|
});
|
|
}).catch(err => {
|
|
console.warn('Failed to unregister service workers:', err);
|
|
});
|
|
}
|
|
|
|
ReactDOM.createRoot(document.getElementById('root')).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>,
|
|
)
|