Added logging
parent
9bcbe80f3e
commit
f611b72234
|
@ -19,6 +19,7 @@ function PeerList() {
|
|||
|
||||
// Initial loading
|
||||
self.getUser = async () => {
|
||||
console.log(`Getting user...`)
|
||||
let res; try {
|
||||
res = await fetch(`${API_URL}/`)
|
||||
} catch (err) {
|
||||
|
@ -34,6 +35,7 @@ function PeerList() {
|
|||
console.error('Failed to parse JSON!')
|
||||
if (err) console.error(err)
|
||||
}
|
||||
console.log(user)
|
||||
self.peers(
|
||||
user.peers.sort(
|
||||
(a,b) => a.ipv4.split('.')[3] - b.ipv4.split('.')[3])
|
||||
|
|
Loading…
Reference in New Issue