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) {
|
if (!file) {
|
||||||
return notFound(state, emit);
|
return notFound(state, emit);
|
||||||
}
|
}
|
||||||
const passwordComplete = html`
|
|
||||||
<div class="selectPassword">
|
file.password = file.password || '';
|
||||||
Password: ${file.password}
|
const passwordComplete = html`<div class="selectPassword"></div>`;
|
||||||
</div>`;
|
passwordComplete.innerHTML = file.password.replace(/ /g, ' ');
|
||||||
|
|
||||||
const passwordSection = file.password
|
const passwordSection = file.password
|
||||||
? passwordComplete
|
? passwordComplete
|
||||||
: uploadPassword(state, emit);
|
: uploadPassword(state, emit);
|
||||||
|
|
Loading…
Reference in a new issue