forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
25
electron/node_modules/global-agent/src/routines/bootstrap.js
generated
vendored
Normal file
25
electron/node_modules/global-agent/src/routines/bootstrap.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// @flow
|
||||
|
||||
import Logger from '../Logger';
|
||||
import {
|
||||
createGlobalProxyAgent,
|
||||
} from '../factories';
|
||||
import type {
|
||||
ProxyAgentConfigurationInputType,
|
||||
} from '../types';
|
||||
|
||||
const log = Logger.child({
|
||||
namespace: 'bootstrap',
|
||||
});
|
||||
|
||||
export default (configurationInput?: ProxyAgentConfigurationInputType): boolean => {
|
||||
if (global.GLOBAL_AGENT) {
|
||||
log.warn('found global.GLOBAL_AGENT; second attempt to bootstrap global-agent was ignored');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
global.GLOBAL_AGENT = createGlobalProxyAgent(configurationInput);
|
||||
|
||||
return true;
|
||||
};
|
||||
3
electron/node_modules/global-agent/src/routines/index.js
generated
vendored
Normal file
3
electron/node_modules/global-agent/src/routines/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// @flow
|
||||
|
||||
export {default as bootstrap} from './bootstrap';
|
||||
Loading…
Add table
Add a link
Reference in a new issue