2018-07-11 21:08:53 -04:00
|
|
|
import {Component, OnInit} from '@angular/core';
|
|
|
|
import {Router} from '@angular/router';
|
|
|
|
import {ElectronService} from 'ngx-electron';
|
2018-06-24 21:11:31 -04:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-root',
|
2018-07-03 10:10:47 -04:00
|
|
|
templateUrl: 'app.component.html'
|
2018-06-24 21:11:31 -04:00
|
|
|
})
|
2018-07-11 21:08:53 -04:00
|
|
|
export class AppComponent implements OnInit {
|
|
|
|
constructor(private router: Router, public electron: ElectronService) {}
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
if(this.electron.isElectronApp) {
|
|
|
|
this.router.navigate(['/formulaManager']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|