Skip to content

Commit

Permalink
fix html attachments in single file mode (fixes #2121, via #2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
baev authored Oct 5, 2023
1 parent 6043391 commit bb5bd12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AttachmentView extends View {

onRender() {
if (!this.sourceUrl) {
reportDataUrl(`data/attachments/${this.attachment.source}`)
reportDataUrl(`data/attachments/${this.attachment.source}`, this.attachment.type)
.then((sourceUrl) => {
this.sourceUrl = sourceUrl;
})
Expand Down
2 changes: 1 addition & 1 deletion allure-generator/src/main/resources/tpl/index.html.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
window.reportDataReady = false;
window.reportData = window.reportData || {};
function d(name, value){
return new Promise(function (resolve) {console.log(name);window.reportData[name] = value;resolve(true)});
return new Promise(function (resolve) {window.reportData[name] = value;resolve(true)});
}
</script>
<script defer>
Expand Down

0 comments on commit bb5bd12

Please sign in to comment.