Add sweetalert to show styled alert on web bluetooth/socket.io errors

This commit is contained in:
Peter Stockings
2023-01-26 21:22:33 +11:00
parent 0af3fccfc0
commit 168b7ca548
2 changed files with 4 additions and 1 deletions

View File

@@ -115,5 +115,7 @@ function revsToRPM(prevRes, res) {
btn.addEventListener("click", () =>
connect({
onChange: parseCSC,
}).catch(console.error)
}).catch((err) => {
swal("Oops", err, "error");
})
);