Files
start-os/web/projects/ui/src/app/services/ui-launcher.service.ts
Matt Hill 87d6684ca7 Frontend changes for 036 (#2554)
* 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
2024-02-23 10:38:50 -07:00

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',
)
}
}