Simplify the loading of the loader in the renderer processes

This commit is contained in:
Alex Dima
2018-09-07 12:59:08 +02:00
parent a4bf919e59
commit de17948191
5 changed files with 55 additions and 88 deletions

View File

@@ -7,16 +7,8 @@
const bootstrapWindow = require('../../../../bootstrap-window');
bootstrapWindow.load(['vs/code/electron-browser/sharedProcess/sharedProcessMain'],
function (loaderFilename, loaderSource, clb) {
require('vm').runInThisContext(loaderSource, { filename: loaderFilename });
clb(require);
},
function (sharedProcess, configuration) {
sharedProcess.startup({
machineId: configuration.machineId
});
});
bootstrapWindow.load(['vs/code/electron-browser/sharedProcess/sharedProcessMain'], function (sharedProcess, configuration) {
sharedProcess.startup({
machineId: configuration.machineId
});
});