mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
Do not process instead of proxy events we dont care about
This commit is contained in:
parent
e4c0ae0723
commit
26cf82fe8a
@ -36,7 +36,7 @@ self.addEventListener('fetch', event => {
|
||||
const path = event.request.url.substr(event.request.url.indexOf('/', 7));
|
||||
|
||||
if (event.request.mode !== 'same-origin' || !INDEX_ROUTES.includes(path)) {
|
||||
return fetch(event.request);
|
||||
return;
|
||||
}
|
||||
|
||||
event.respondWith(
|
||||
|
Loading…
x
Reference in New Issue
Block a user