This commit is contained in:
everoddandeven 2024-10-23 20:15:10 +02:00
parent 03d38719b7
commit 9d0500f23e
2 changed files with 3 additions and 7 deletions

View file

@ -7,9 +7,8 @@ import { createHash } from 'crypto';
import * as tar from 'tar'; import * as tar from 'tar';
import * as os from 'os'; import * as os from 'os';
import * as pidusage from 'pidusage'; import * as pidusage from 'pidusage';
//import AutoLaunch from 'auto-launch';
import AutoLaunch from 'auto-launch'; const AutoLaunch = require('auto-launch');
//const AutoLaunch = require('auto-launch');
interface Stats { interface Stats {
/** /**

View file

@ -1,6 +1,5 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { ElectronService } from './core/services'; import { ElectronService } from './core/services';
import { TranslateService } from '@ngx-translate/core';
import { APP_CONFIG } from '../environments/environment'; import { APP_CONFIG } from '../environments/environment';
import { DaemonService } from './core/services/daemon/daemon.service'; import { DaemonService } from './core/services/daemon/daemon.service';
import { DaemonDataService } from './core/services/daemon/daemon-data.service'; import { DaemonDataService } from './core/services/daemon/daemon-data.service';
@ -21,12 +20,10 @@ export class AppComponent {
constructor( constructor(
private electronService: ElectronService, private electronService: ElectronService,
private translate: TranslateService,
private daemonService: DaemonService, private daemonService: DaemonService,
private daemonData: DaemonDataService, private daemonData: DaemonDataService,
private LogService: LogsService private LogService: LogsService
) { ) {
this.translate.setDefaultLang('en');
console.log('APP_CONFIG', APP_CONFIG); console.log('APP_CONFIG', APP_CONFIG);
if (electronService.isElectron) { if (electronService.isElectron) {
@ -38,7 +35,7 @@ export class AppComponent {
console.log('Run in browser'); console.log('Run in browser');
} }
this.load(); this.load().then().catch((error: any) => console.error(error));
} }
private async isAutoLaunched(): Promise<boolean> { private async isAutoLaunched(): Promise<boolean> {