display spaces as they were originally in the password
This commit is contained in:
parent
6e7ed3cea3
commit
202e428412
1 changed files with 5 additions and 4 deletions
|
@ -9,10 +9,11 @@ module.exports = function(state, emit) {
|
|||
if (!file) {
|
||||
return notFound(state, emit);
|
||||
}
|
||||
const passwordComplete = html`
|
||||
<div class="selectPassword">
|
||||
Password: ${file.password}
|
||||
</div>`;
|
||||
|
||||
file.password = file.password || '';
|
||||
const passwordComplete = html`<div class="selectPassword"></div>`;
|
||||
passwordComplete.innerHTML = file.password.replace(/ /g, ' ');
|
||||
|
||||
const passwordSection = file.password
|
||||
? passwordComplete
|
||||
: uploadPassword(state, emit);
|
||||
|
|
Loading…
Reference in a new issue