fix trace npe. fix /boot redirect after install

This commit is contained in:
Stewart Allen 2025-11-21 20:12:55 -05:00
commit 1f6314512c
3 changed files with 3 additions and 3 deletions

View file

@ -143,7 +143,7 @@ async function _fetch(e) {
if (url.pathname.endsWith("/")) {
return e.respondWith(redirectOr404(appendURL(url, 'index.html').pathname));
} else if (url.pathname.indexOf(".") < 0) {
} else if (url.pathname.indexOf(".") < 0 || url.pathname.endsWith("/boot")) {
return e.respondWith(redirectOr404(appendURL(url, '/index.html').pathname));
} else {
e.respondWith(fromCacheOrNetwork(request));