Passage à electron 1.6.5
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
var ipc = require('ipc');
|
||||
//var ipc = require('ipc');
|
||||
var ipc = require('electron').ipcMain;
|
||||
var isMainProcess = process.type === 'browser';
|
||||
|
||||
var QUIT_CMD = 'app-util:quit';
|
||||
|
||||
|
||||
exports.quit = function(exitCode) {
|
||||
if(isMainProcess) {
|
||||
process.exit(exitCode);
|
||||
@@ -13,7 +14,6 @@ exports.quit = function(exitCode) {
|
||||
|
||||
// Main process, setup listeners
|
||||
if(isMainProcess) {
|
||||
|
||||
ipc.on(QUIT_CMD, function(evt, exitCode) {
|
||||
exports.quit(exitCode);
|
||||
});
|
||||
|
@@ -24,6 +24,7 @@ exports.load = function(profileUrl, withImports) {
|
||||
|
||||
for(var node, item = iterator.next(); !item.done; item = iterator.next()) {
|
||||
node = item.value.node;
|
||||
|
||||
// For each import found, load the partial and "mount" it on the current item
|
||||
if(node.import) {
|
||||
var importPath = path.resolve(path.dirname(profileUrl), node.import)
|
||||
|
Reference in New Issue
Block a user