pwa setting

This commit is contained in:
hamed
2026-06-13 13:28:39 +03:30
parent 0b5d017b14
commit d50fb96542
15 changed files with 782 additions and 0 deletions
+6
View File
@@ -33,6 +33,12 @@ const toastStyle: React.CSSProperties = {
minWidth: 260,
};
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js').catch(() => {});
});
}
const root = document.getElementById('admin-root')!;
createRoot(root).render(
<React.StrictMode>