mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-20 17:56:31 +00:00
Fix loading driveBlacklist settings
Change-type: patch
This commit is contained in:
parent
c09237f0c3
commit
990dcc9d5a
@ -153,9 +153,7 @@ const COMPUTE_MODULE_DESCRIPTIONS: _.Dictionary<string> = {
|
|||||||
[USB_PRODUCT_ID_BCM2710_BOOT]: 'Compute Module 3',
|
[USB_PRODUCT_ID_BCM2710_BOOT]: 'Compute Module 3',
|
||||||
};
|
};
|
||||||
|
|
||||||
const BLACKLISTED_DRIVES = settings.has('driveBlacklist')
|
let BLACKLISTED_DRIVES: string[] = [];
|
||||||
? settings.get('driveBlacklist').split(',')
|
|
||||||
: [];
|
|
||||||
|
|
||||||
function driveIsAllowed(drive: {
|
function driveIsAllowed(drive: {
|
||||||
devicePath: string;
|
devicePath: string;
|
||||||
@ -342,6 +340,7 @@ async function main(): Promise<void> {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
exceptionReporter.report(error);
|
exceptionReporter.report(error);
|
||||||
}
|
}
|
||||||
|
BLACKLISTED_DRIVES = settings.get('driveBlacklist') || [];
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
React.createElement(MainPage),
|
React.createElement(MainPage),
|
||||||
document.getElementById('main'),
|
document.getElementById('main'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user