mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -09:00
🐛 Handle electron default env (#1764)
This commit is contained in:
parent
9eb31ea55c
commit
aa7e79a039
1 changed files with 7 additions and 0 deletions
|
|
@ -30,6 +30,13 @@ module.exports = class Session extends EventEmitter {
|
||||||
TERM_PROGRAM_VERSION: version
|
TERM_PROGRAM_VERSION: version
|
||||||
}, envFromConfig);
|
}, envFromConfig);
|
||||||
|
|
||||||
|
// Electron has a default value for process.env.GOOGLE_API_KEY
|
||||||
|
// We don't want to leak this to the shell
|
||||||
|
// See https://github.com/zeit/hyper/issues/696
|
||||||
|
if (baseEnv.GOOGLE_API_KEY && process.env.GOOGLE_API_KEY === baseEnv.GOOGLE_API_KEY) {
|
||||||
|
delete baseEnv.GOOGLE_API_KEY;
|
||||||
|
}
|
||||||
|
|
||||||
const decoder = new StringDecoder('utf8');
|
const decoder = new StringDecoder('utf8');
|
||||||
|
|
||||||
const defaultShellArgs = ['--login'];
|
const defaultShellArgs = ['--login'];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue