Skip to content

Commit 731b466

Browse files
committed
Wait for message
Without the await the Message was not showing before an exception happened.
1 parent a038a35 commit 731b466

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ class ReplJS{
477477
// Perform operations after successful connection
478478
} catch (error) {
479479
console.log('timed out: ', error);
480-
window.alertMessage("Error connecting to the XRP. Please refresh this page and try again");
480+
await window.alertMessage("Error connecting to the XRP. Please refresh this page and try again");
481481
this.BLE_DEVICE = undefined;
482482
return false;
483483
}

0 commit comments

Comments
 (0)