We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 289b597 commit 59761cfCopy full SHA for 59761cf
1 file changed
js/workflows/usb.js
@@ -125,7 +125,12 @@ class USBWorkflow extends Workflow {
125
// This would help with other workflows as well
126
} else {
127
console.log('Requesting any serial device...');
128
- device = await navigator.serial.requestPort();
+ try {
129
+ device = await navigator.serial.requestPort();
130
+ } catch (e) {
131
+ console.log(e);
132
+ return false;
133
+ }
134
}
135
136
// If we didn't automatically use a saved device
@@ -155,7 +160,7 @@ class USBWorkflow extends Workflow {
155
160
btnSelectHostFolder.disabled = true;
156
161
let serialConnect = async (event) => {
157
162
try {
158
- await this.connectToSerial();
163
+ await this.showBusy(this.connectToSerial());
159
164
} catch (e) {
165
//console.log(e);
166
//alert(e.message);
0 commit comments