This commit is contained in:
Eugene Pankov
2021-07-26 21:00:13 +02:00
parent 427a245b24
commit f818dbf03e
4 changed files with 7 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ export class HomeComponent {
const versions = await this.http.get('/api/1/versions').toPromise()
versions.sort((a, b) => -semverCompare(a.version, b.version))
this.connector = new DemoConnector(this.iframe.nativeElement.contentWindow, this.commonService, versions[0])
this.iframe.nativeElement.src = '/terminal.html'
this.iframe.nativeElement.src = '/terminal'
}
ngOnDestroy (): void {

View File

@@ -80,7 +80,7 @@ export class MainComponent {
async loadApp (config, version) {
this.showApp = true
this.iframe.nativeElement.src = '/terminal.html'
this.iframe.nativeElement.src = '/terminal'
await this.http.patch(`/api/1/configs/${config.id}`, {
last_used_with_version: version.version,
}).toPromise()