From 2b66762dec7fa62514cf0a62b42a2b760300c100 Mon Sep 17 00:00:00 2001 From: Jonas Hermsmeier Date: Fri, 16 Feb 2018 18:21:17 +0100 Subject: [PATCH] fix(app): Fix enabling debug output This fixes enabling debug output via the DEBUG env var Change-Type: patch --- lib/gui/app/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gui/app/app.js b/lib/gui/app/app.js index 41b73921..ff8ced9f 100644 --- a/lib/gui/app/app.js +++ b/lib/gui/app/app.js @@ -52,8 +52,8 @@ const exceptionReporter = require('./modules/exception-reporter') // // Enable drivelist debugging information // See https://github.com/resin-io-modules/drivelist -electron.remote.process.env.DRIVELIST_DEBUG = /drivelist|^\*$/i.test(electron.remote.process.env.DEBUG) ? '1' : '' -window.localStorage.debug = electron.remote.process.env.DEBUG +process.env.DRIVELIST_DEBUG = /drivelist|^\*$/i.test(process.env.DEBUG) ? '1' : '' +window.localStorage.debug = process.env.DEBUG const app = angular.module('Etcher', [ require('angular-ui-router'),