From 91a4d04ace5c30d096ccab0eb2db072cbd24b0d7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 3 Nov 2015 14:36:06 -0800 Subject: [PATCH] Return early if ATOM_HOME is already set --- static/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/index.js b/static/index.js index efca711f4..17fa3efc8 100644 --- a/static/index.js +++ b/static/index.js @@ -170,6 +170,10 @@ } var setupAtomHome = function () { + if (process.env.ATOM_HOME) { + return + } + // Ensure ATOM_HOME is always set before anything else is required // This is because of a difference in Linux not inherited between browser and render processes // issue #5142