fixup: add logging when the Electron Enable Logging env var is set

This commit is contained in:
Samuel Attard
2018-07-30 11:17:44 +10:00
committed by GitHub
parent 25746c6303
commit 2c177ca2c5

View File

@@ -424,6 +424,9 @@ app.once('ready', function () {
}
}
} catch (error) {
// Ignore error
if (process.env.ELECTRON_ENABLE_LOGGING) {
console.error('Failed to load browser extension from directory:', srcDirectory)
console.error(error)
}
}
})