mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
add rpcClient to window
This commit is contained in:
committed by
Aiden McClelland
parent
6386359fe3
commit
4a63e3079c
@@ -9,7 +9,10 @@ export class LiveApiService extends ApiService {
|
|||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private readonly http: HttpService,
|
private readonly http: HttpService,
|
||||||
) { super() }
|
) {
|
||||||
|
super();
|
||||||
|
(window as any).rpcClient = this
|
||||||
|
}
|
||||||
|
|
||||||
async getStatic (url: string): Promise<string> {
|
async getStatic (url: string): Promise<string> {
|
||||||
return this.http.httpRequest({
|
return this.http.httpRequest({
|
||||||
|
|||||||
Reference in New Issue
Block a user