fix broken PREFIX_URL feature

This commit is contained in:
Alex
2019-12-06 14:16:19 +02:00
parent 6d6ef97826
commit 91cee0339a
6 changed files with 34 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { of, Subject } from 'rxjs';
import { catchError } from 'rxjs/operators';
import { Socket } from 'ngx-socket-io';
import { MeTubeSocket } from './metube-socket';
export interface Status {
status: string;
@@ -31,7 +31,7 @@ export class DownloadsService {
queueChanged = new Subject();
doneChanged = new Subject();
constructor(private http: HttpClient, private socket: Socket) {
constructor(private http: HttpClient, private socket: MeTubeSocket) {
socket.fromEvent('all').subscribe((strdata: string) => {
this.loading = false;
let data: [[[string, Download]], [[string, Download]]] = JSON.parse(strdata);