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);
|
setResult(res);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
setResult({ type: "failure", error: err.toString() });
|
setResult({ type: "failure", error: err.toString() });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -80,6 +80,7 @@ const getRelayTime = () => {
|
|||||||
script,
|
script,
|
||||||
config,
|
config,
|
||||||
peer: Fluence.defaultClient,
|
peer: Fluence.defaultClient,
|
||||||
|
fireAndForget: false
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -109,5 +110,5 @@ btn.addEventListener("click", () => {
|
|||||||
inner.id = "res";
|
inner.id = "res";
|
||||||
inner.innerText = res;
|
inner.innerText = res;
|
||||||
document.getElementById("res-placeholder").appendChild(inner);
|
document.getElementById("res-placeholder").appendChild(inner);
|
||||||
});
|
}).catch(console.log);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user