Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const configureContext = thread => {
const container = createContainer({
injectionMode: InjectionMode.PROXY
});
registerCommonServices(container, thread);
if (thread === 'main') {
require('../main/context').registerMainServices(container);
}
if (thread === 'renderer') {
require('../renderer/context').registerRendererServices(container);
}
return container;
};