diff --git a/app/templates/share.js b/app/templates/share.js index 2fe1a741..249b432a 100644 --- a/app/templates/share.js +++ b/app/templates/share.js @@ -9,10 +9,11 @@ module.exports = function(state, emit) { if (!file) { return notFound(state, emit); } - const passwordComplete = html` -
- Password: ${file.password} -
`; + + file.password = file.password || ''; + const passwordComplete = html`
`; + passwordComplete.innerHTML = file.password.replace(/ /g, ' '); + const passwordSection = file.password ? passwordComplete : uploadPassword(state, emit);