Spaces:
Sleeping
Sleeping
findEthics commited on
Commit ·
fb0dac2
1
Parent(s): 241d956
Bug fix
Browse files- static/js/chat.js +1 -2
static/js/chat.js
CHANGED
|
@@ -220,8 +220,7 @@ class ChatApp {
|
|
| 220 |
document.addEventListener('DOMContentLoaded', () => {
|
| 221 |
new ChatApp();
|
| 222 |
});
|
| 223 |
-
//
|
| 224 |
-
al: Register service worker for better mobile experience
|
| 225 |
if ('serviceWorker' in navigator && window.location.protocol === 'https:') {
|
| 226 |
window.addEventListener('load', () => {
|
| 227 |
// Only register if we have a service worker file
|
|
|
|
| 220 |
document.addEventListener('DOMContentLoaded', () => {
|
| 221 |
new ChatApp();
|
| 222 |
});
|
| 223 |
+
// Optional: Register service worker for better mobile experience
|
|
|
|
| 224 |
if ('serviceWorker' in navigator && window.location.protocol === 'https:') {
|
| 225 |
window.addEventListener('load', () => {
|
| 226 |
// Only register if we have a service worker file
|