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,14 +7,6 @@
const bootstrapWindow = require('../../../../bootstrap-window');
bootstrapWindow.load(['vs/code/electron-browser/processExplorer/processExplorerMain'],
function (loaderFilename, loaderSource, clb) {
require('vm').runInThisContext(loaderSource, { filename: loaderFilename });
clb(require);
},
function (processExplorer, configuration) {
processExplorer.startup(configuration.data);
});
bootstrapWindow.load(['vs/code/electron-browser/processExplorer/processExplorerMain'], function (processExplorer, configuration) {
processExplorer.startup(configuration.data);
});