mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-28 16:18:35 +00:00
bootstrap 5 WIP (#7891)
New standard theme that follows your chosen terminal colors, Bootstrap 5 & Angular 15 upgrade
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { Injectable, Injector } from '@angular/core'
|
||||
import WSABinding from 'serialport-binding-webserialapi'
|
||||
import AbstractBinding from '@serialport/binding-abstract'
|
||||
import { autoDetect } from '@serialport/bindings-cpp'
|
||||
@@ -9,7 +9,7 @@ import { SerialTabComponent } from '../components/serialTab.component'
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class SerialService {
|
||||
private constructor (
|
||||
private profilesService: ProfilesService,
|
||||
private injector: Injector,
|
||||
private hostApp: HostAppService,
|
||||
) { }
|
||||
|
||||
@@ -45,6 +45,6 @@ export class SerialService {
|
||||
},
|
||||
}
|
||||
window.localStorage.lastSerialConnection = JSON.stringify(profile)
|
||||
return this.profilesService.openNewTabForProfile(profile) as Promise<SerialTabComponent|null>
|
||||
return this.injector.get(ProfilesService).openNewTabForProfile(profile) as Promise<SerialTabComponent|null>
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user