mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
Merge pull request #2470 from resin-io/fix-blacklist-setting
gui: Also blacklist match against device & raw path
This commit is contained in:
commit
1c5bab63a5
@ -242,7 +242,9 @@ app.run(($timeout) => {
|
||||
$timeout(() => {
|
||||
if (BLACKLISTED_DRIVES.length) {
|
||||
const allowedDrives = drives.filter((drive) => {
|
||||
return !BLACKLISTED_DRIVES.includes(drive.devicePath)
|
||||
return !(BLACKLISTED_DRIVES.includes(drive.devicePath) ||
|
||||
BLACKLISTED_DRIVES.includes(drive.device) ||
|
||||
BLACKLISTED_DRIVES.includes(drive.raw))
|
||||
})
|
||||
availableDrives.setDrives(allowedDrives)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user