Add sweetalert to show styled alert on web bluetooth/socket.io errors
This commit is contained in:
@@ -115,5 +115,7 @@ function revsToRPM(prevRes, res) {
|
||||
btn.addEventListener("click", () =>
|
||||
connect({
|
||||
onChange: parseCSC,
|
||||
}).catch(console.error)
|
||||
}).catch((err) => {
|
||||
swal("Oops", err, "error");
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user