Skip to content

Commit

Permalink
Merge pull request #292 from Shivam7-1/patch-1
Browse files Browse the repository at this point in the history
Update CodeEditorToolbar.js DOM text reinterpreted as HTML
  • Loading branch information
MarkusBordihn authored Apr 26, 2024
2 parents 6fd1540 + f2b3672 commit 0f619e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CodeEditor/CodeEditorToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class CodeEditorToolbar extends React.PureComponent {
});
const downloadLink = document.createElement('a');
downloadLink.download = `${this.props.project.name}-${this.props.project.id}.xml`;
downloadLink.innerHTML = 'Download File';
downloadLink.innerText = 'Download File';
if (window.webkitURL != null) {
// Chrome allows the link to be clicked without actually adding it to the DOM.
downloadLink.href = window.webkitURL.createObjectURL(textAsBlob);
Expand Down

0 comments on commit 0f619e9

Please sign in to comment.