We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc00b72 commit abff016Copy full SHA for abff016
1 file changed
src/lib/utils/compatibility.ts
@@ -21,6 +21,7 @@ export const isMobile = mobilecheck();
21
export const isSerialSupported =
22
browser &&
23
'serial' in navigator &&
24
+ navigator.serial !== undefined &&
25
typeof navigator.serial.getPorts === 'function' &&
26
typeof navigator.serial.requestPort === 'function' &&
27
typeof navigator.serial.addEventListener === 'function';
0 commit comments