Skip to content

Commit

Permalink
check for multiple text/html variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Feb 29, 2024
1 parent b23646f commit 204ef05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report-viewer/src/model/factories/BaseFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class BaseFactory {
if (request.status == 200) {
const blob = await request.blob()
// Check that file is not the index.html
if (blob.type == 'text/html') {
if (blob.type.includes('text/html')) {
throw new Error(`Could not find ${path} in local files.`)
}
return blob
Expand Down

0 comments on commit 204ef05

Please sign in to comment.