diff --git a/app/main.dev.js b/app/main.dev.js index b3efbef5d..39152600a 100755 --- a/app/main.dev.js +++ b/app/main.dev.js @@ -273,11 +273,16 @@ operating system, as soon as possible.`, mainWindow.webContents.session.on('select-serial-port', (event, portList, webContents, callback) => { event.preventDefault(); + portList = portList.filter(port => ( + // filter out signature pads + port.serialNumber !== 'TOPAZBSB' && + !(typeof port.deviceInstanceId === 'string' && port.deviceInstanceId.includes('TOPAZBSB')) + )); console.log('Port list:', portList); let selectedPort; for (let i = 0; i < serialPortFilter.length; i++) { - selectedPort = portList.find((element) => + selectedPort = portList.find((element) => serialPortFilter[i].usbVendorId === parseInt(element.vendorId, 10) && serialPortFilter[i].usbProductId === parseInt(element.productId, 10) ); @@ -717,7 +722,7 @@ if (!gotTheLock) { return handleIncomingUrl(url); } }); - + // Protocol handler for osx app.on('open-url', (event, url) => { event.preventDefault(); @@ -733,4 +738,4 @@ function getURLFromArgs(args) { } } return undefined; -} \ No newline at end of file +} diff --git a/app/package.json b/app/package.json index cb1089b9d..179f2b43e 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "tidepool-uploader", "productName": "tidepool-uploader", - "version": "2.59.1-ultra-plus-flex.3", + "version": "2.59.1-filter-signature-pads.2", "description": "Tidepool Project Universal Uploader", "main": "./main.prod.js", "author": { diff --git a/package.json b/package.json index 5c3c99aea..821db251a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tidepool-uploader", - "version": "2.59.1-ultra-plus-flex.3", + "version": "2.59.1-filter-signature-pads.2", "description": "Tidepool Project Universal Uploader", "private": true, "main": "main.prod.js",