mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
keepalive service_worker
This commit is contained in:
@@ -96,6 +96,7 @@ const serve_response_from_dir = async event => {
|
||||
|
||||
self.addEventListener("fetch", event => {
|
||||
const url = new URL(event.request.url)
|
||||
|
||||
if(url.pathname.startsWith(FILES_ROOT)) {
|
||||
event.respondWith(serve_response_from_dir(event))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user