Skip to content

Commit

Permalink
Fix: json file extention in export metadata summary page (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal authored Jun 26, 2024
1 parent aca0c72 commit 6cc421c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class extends Controller {

downloadJsonLd () {
this.#toJSONLD().then((jsonld) => {
this.#generateDownloadFile(JSON.stringify(jsonld, null, ' '), 'nt')
this.#generateDownloadFile(JSON.stringify(jsonld, null, ' '), 'json')
})
}

Expand Down Expand Up @@ -211,7 +211,6 @@ export default class extends Controller {
// TODO: change MIME type?
element.setAttribute('href', 'data:application/rdf+json;charset=utf-8,' + encodeURIComponent(content))
element.setAttribute('download', jQuery(document).data().bp.ontology.acronym + '_metadata.' + fileExtension)

element.style.display = 'none'
document.body.appendChild(element)
element.click()
Expand Down

0 comments on commit 6cc421c

Please sign in to comment.