fix(sw): remove dead pathname startsWith('/') guard after basePath drop
This commit is contained in:
+1
-2
@@ -19,8 +19,7 @@ self.addEventListener('fetch', event => {
|
|||||||
// Only handle same-origin GET requests
|
// Only handle same-origin GET requests
|
||||||
if (
|
if (
|
||||||
event.request.method !== 'GET' ||
|
event.request.method !== 'GET' ||
|
||||||
url.origin !== self.location.origin ||
|
url.origin !== self.location.origin
|
||||||
!url.pathname.startsWith('/')
|
|
||||||
) {
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user