mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
fix(app): Fix enabling debug output
This fixes enabling debug output via the DEBUG env var Change-Type: patch
This commit is contained in:
parent
4fa0f990e5
commit
2b66762dec
@ -52,8 +52,8 @@ const exceptionReporter = require('./modules/exception-reporter')
|
|||||||
//
|
//
|
||||||
// Enable drivelist debugging information
|
// Enable drivelist debugging information
|
||||||
// See https://github.com/resin-io-modules/drivelist
|
// See https://github.com/resin-io-modules/drivelist
|
||||||
electron.remote.process.env.DRIVELIST_DEBUG = /drivelist|^\*$/i.test(electron.remote.process.env.DEBUG) ? '1' : ''
|
process.env.DRIVELIST_DEBUG = /drivelist|^\*$/i.test(process.env.DEBUG) ? '1' : ''
|
||||||
window.localStorage.debug = electron.remote.process.env.DEBUG
|
window.localStorage.debug = process.env.DEBUG
|
||||||
|
|
||||||
const app = angular.module('Etcher', [
|
const app = angular.module('Etcher', [
|
||||||
require('angular-ui-router'),
|
require('angular-ui-router'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user