Skip to content

Commit

Permalink
fix: incorrect navigator check (ref 915e2a9)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxxyz committed Nov 27, 2023
1 parent 25640a9 commit 4b748e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const EventEmitter = require('events')
const rgba = require('color-rgba')

let SerialConnection, WSConnection
if (typeof navigator !== 'undefined' && navigator.getPorts) {
if (typeof navigator !== 'undefined' && navigator.serial) {
SerialConnection = require('./connections/web-serial')
} else {
SerialConnection = require('./connections/serial')
Expand Down

0 comments on commit 4b748e5

Please sign in to comment.