mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
* new interfaces and remove tor http warnings * move sigtermTimeout to stopping main status * lightning, masked, schemeOverride, invert host-iface relationship * update for new sdk * update for latest SDK changes * Update app-interfaces.page.ts * Update config.service.ts
23 lines
622 B
TypeScript
23 lines
622 B
TypeScript
import { Inject, Injectable } from '@angular/core'
|
|
import { WINDOW } from '@ng-web-apis/common'
|
|
import { InstalledPackageDataEntry } from 'src/app/services/patch-db/data-model'
|
|
import { ConfigService } from './config.service'
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class UiLauncherService {
|
|
constructor(
|
|
@Inject(WINDOW) private readonly windowRef: Window,
|
|
private readonly config: ConfigService,
|
|
) {}
|
|
|
|
launch(interfaces: InstalledPackageDataEntry['service-interfaces']): void {
|
|
this.windowRef.open(
|
|
this.config.launchableAddress(interfaces),
|
|
'_blank',
|
|
'noreferrer',
|
|
)
|
|
}
|
|
}
|