mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2024-12-05 02:10:18 +00:00
Fix logging for web tests
This commit is contained in:
parent
05180c1020
commit
fd23160f81
@ -12,6 +12,7 @@ function App() {
|
||||
setResult(res);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
setResult({ type: "failure", error: err.toString() });
|
||||
});
|
||||
};
|
||||
|
@ -80,6 +80,7 @@ const getRelayTime = () => {
|
||||
script,
|
||||
config,
|
||||
peer: Fluence.defaultClient,
|
||||
fireAndForget: false
|
||||
});
|
||||
};
|
||||
|
||||
@ -109,5 +110,5 @@ btn.addEventListener("click", () => {
|
||||
inner.id = "res";
|
||||
inner.innerText = res;
|
||||
document.getElementById("res-placeholder").appendChild(inner);
|
||||
});
|
||||
}).catch(console.log);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user