Ng not ejected anymore

This commit is contained in:
Maxime GRIS
2018-02-25 22:01:57 +01:00
parent 1ae6f7aedc
commit 67ab31c458
26 changed files with 473 additions and 733 deletions

View File

@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
import { ElectronService } from './providers/electron.service';
import { TranslateService } from '@ngx-translate/core';
import { AppConfig } from './app.config';
@Component({
selector: 'app-root',
@@ -12,13 +13,12 @@ export class AppComponent {
private translate: TranslateService) {
translate.setDefaultLang('en');
console.log('AppConfig', AppConfig);
if (electronService.isElectron()) {
console.log('Mode electron');
// Check if electron is correctly injected (see externals in webpack.config.js)
console.log('c', electronService.ipcRenderer);
// Check if nodeJs childProcess is correctly injected (see externals in webpack.config.js)
console.log('c', electronService.childProcess);
console.log('Electron ipcRenderer', electronService.ipcRenderer);
console.log('NodeJS childProcess', electronService.childProcess);
} else {
console.log('Mode web');
}