fix(sw): remove dead pathname startsWith('/') guard after basePath drop

This commit is contained in:
2026-07-23 22:34:20 +08:00
parent 0389d6091a
commit 04c36f9d45
+1 -2
View File
@@ -19,8 +19,7 @@ self.addEventListener('fetch', event => {
// Only handle same-origin GET requests
if (
event.request.method !== 'GET' ||
url.origin !== self.location.origin ||
!url.pathname.startsWith('/')
url.origin !== self.location.origin
) {
return
}