Skip to content

Commit

Permalink
Merge pull request #1628 from jplag/bug-fix/local-files-button
Browse files Browse the repository at this point in the history
Hide local files button in VIEW mode
  • Loading branch information
sebinside authored Mar 5, 2024
2 parents 4db9429 + 204ef05 commit eb71247
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 eb71247

Please sign in to comment.