mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2025-03-16 23:29:48 -04:00
explicitly put '' by default for the password
This commit is contained in:
parent
f06255475d
commit
141d6f69fb
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -17,7 +17,7 @@ async function main () {
|
|||
const host = prompt('Host', '95.111.249.143')
|
||||
const port = parseInt(prompt('Port', '10000'))
|
||||
const username = prompt('Username', 'pviewer_person ' + (Math.floor(Math.random() * 1000)))
|
||||
let password = prompt('Password (blank for offline)')
|
||||
let password = prompt('Password (blank for offline)', '')
|
||||
password = password === '' ? undefined : password
|
||||
console.log(`connecting to ${host} ${port} with ${username}`)
|
||||
|
||||
|
|
Loading…
Reference in a new issue