Spaces:
Sleeping
Sleeping
Download sw.js from RonitP1/Stock-Rivals: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/RonitP1/Stock-Rivals/resolve/main/sw.js
- Command line
-
hf download hf://spaces/RonitP1/Stock-Rivals/sw.js
-
curl -L -o sw.js https://huggingface.co/spaces/RonitP1/Stock-Rivals/resolve/main/sw.js
429 Bytes
| // ponytail: no offline caching — this is a realtime game, stale cached state | |
| // would be worse than no cache. This SW exists only to make the app | |
| // installable and to detect new deploys for the auto-refresh prompt. | |
| self.addEventListener('install', () => self.skipWaiting()); | |
| self.addEventListener('activate', (e) => e.waitUntil(self.clients.claim())); | |
| self.addEventListener('fetch', () => {}); // required for installability | |