SW: don't serve /embed paths

environments/review-sw-embed-24cb0u/deployments/757
Alex Gleason 2022-08-11 14:57:21 -05:00
rodzic cc5bb8b8e4
commit bf5d3b241a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -120,7 +120,7 @@ module.exports = merge(sharedConfig, {
];
if (pathname) {
return backendRoutes.some(path => pathname.startsWith(path));
return backendRoutes.some(path => pathname.startsWith(path)) || pathname.endsWith('/embed');
} else {
return false;
}