mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Remove ServiceWorker
This commit is contained in:
2 files changed
-98
No files matched your search
@@ -9,16 +9,4 @@ import './index.css';
|
||||
// Using Inter Variable font for modern, clean typography
|
||||
import '@fontsource-variable/inter';
|
||||
|
||||
// Register service worker for file serving
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', async () => {
|
||||
try {
|
||||
const registration = await navigator.serviceWorker.register('/sw.js');
|
||||
console.log('SW registered: ', registration);
|
||||
} catch (registrationError) {
|
||||
console.log('SW registration failed: ', registrationError);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
createRoot(document.getElementById("root")!).render(<App />);
|
||||
Reference in new issue
Block a user