From e472fe0276c7b2032b98c74fed9a3193a53e6faf Mon Sep 17 00:00:00 2001 From: Benedict Aas Date: Wed, 16 May 2018 15:28:10 +0100 Subject: [PATCH] feat: blacklist devices by device path (#2345) We use `devicePath` instead of `device` to blacklist drives using the `ETCHER_BLACKLISTED_DRIVES` environment variable. Closes: https://github.com/resin-io/etcher/issues/2264 Change-Type: patch --- lib/gui/app/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui/app/app.js b/lib/gui/app/app.js index c7cbd621..01a0dfc6 100644 --- a/lib/gui/app/app.js +++ b/lib/gui/app/app.js @@ -224,7 +224,7 @@ app.run(($timeout) => { $timeout(() => { if (BLACKLISTED_DRIVES.length) { const allowedDrives = drives.filter((drive) => { - return !BLACKLISTED_DRIVES.includes(drive.device) + return !BLACKLISTED_DRIVES.includes(drive.devicePath) }) availableDrives.setDrives(allowedDrives) } else {