mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 19:56:37 +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(() => {
|
$timeout(() => {
|
||||||
if (BLACKLISTED_DRIVES.length) {
|
if (BLACKLISTED_DRIVES.length) {
|
||||||
const allowedDrives = drives.filter((drive) => {
|
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)
|
availableDrives.setDrives(allowedDrives)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user