From 202e4284129ef652084764a61b5156f3f6c0ba33 Mon Sep 17 00:00:00 2001 From: Erica Wright Date: Wed, 25 Oct 2017 15:48:01 -0400 Subject: [PATCH] display spaces as they were originally in the password --- app/templates/share.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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);