Fix logging for web tests

This commit is contained in:
Akim Mamedov 2023-12-18 22:11:15 +07:00
parent 05180c1020
commit fd23160f81
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ function App() {
setResult(res);
})
.catch((err) => {
console.log(err);
setResult({ type: "failure", error: err.toString() });
});
};

View File

@ -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);
});