fix(drive-scanner): Dynamically get unsafe mode setting (#1852)

Due to the SDK keeping it's options once initialized,
the unsafe mode setting change was not reflected on subsequent scans.

Change-Type: patch
This commit is contained in:
Jonas Hermsmeier 2017-11-17 03:28:32 +01:00 committed by GitHub
parent 773ddb6e9e
commit 66cb7293e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,9 @@ const BLOBS_DIRECTORY = path.join(__dirname, '..', '..', 'blobs')
const scanner = SDK.createScanner({
standard: {
includeSystemDrives: settings.get('unsafeMode')
get includeSystemDrives () {
return settings.get('unsafeMode')
}
},
usbboot: {
readFile: (name) => {