Merge branch 'sw-pathname-fix' into 'develop'
sw.js: fix match against undefined pathname See merge request soapbox-pub/soapbox-fe!868
This commit is contained in:
commit
6e5ec761d5
1 changed files with 5 additions and 1 deletions
|
@ -104,7 +104,11 @@ module.exports = merge(sharedConfig, {
|
|||
];
|
||||
|
||||
const isBackendRoute = ({ pathname }) => {
|
||||
if (pathname) {
|
||||
return backendRoutes.some(pathname.startsWith);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
return isBackendRoute(requestUrl) && requestUrl;
|
||||
|
|
Loading…
Reference in a new issue