Skip to content

Commit 1f1b68f

Browse files
authored
Update src/js/protocols/WebSerial.js
1 parent 1ca26a3 commit 1f1b68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/protocols/WebSerial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class WebSerial extends EventTarget {
336336
}
337337

338338
checkIsNeedBatchWrite() {
339-
const isMac = /macintosh|mac os x/i.test(navigator.userAgent);
339+
const isMac = GUI.operating_system === "MacOS";
340340
return isMac && vendorIdNames[this.connectionInfo.usbVendorId] === "AT32";
341341
}
342342

0 commit comments

Comments
 (0)