Skip to content

Commit

Permalink
fix(quickUpload): Unsafe assignment to innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Apr 22, 2017
1 parent ccc350e commit 0ae21a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add-on/src/popup/quick-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function onQuickUploadInputChange (event) {
bg.ipfs.add(buffer, (err, result) => {
if (err || !result) {
// keep upload tab and display error message in it
quickUploadMessage.innerHTML = `Unable to upload to IPFS API: <br><code><pre>${err}</pre></code>`
quickUploadMessage.innerText = `Unable to upload to IPFS API: ${err}`
} else {
// close upload tab as it will be replaced with a new tab with uploaded content
browser.tabs.getCurrent().then(tab => {
Expand Down

0 comments on commit 0ae21a7

Please sign in to comment.