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
|
||||
if (
|
||||
event.request.method !== 'GET' ||
|
||||
url.origin !== self.location.origin ||
|
||||
!url.pathname.startsWith('/')
|
||||
url.origin !== self.location.origin
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user