upgrade to angular 20
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ApplicationRef } from '@angular/core';
|
||||
import { Socket } from 'ngx-socket-io';
|
||||
|
||||
@Injectable()
|
||||
export class MeTubeSocket extends Socket {
|
||||
constructor() {
|
||||
constructor(appRef: ApplicationRef) {
|
||||
const path =
|
||||
document.location.pathname.replace(/share-target/, '') + 'socket.io';
|
||||
super({ url: '', options: { path } });
|
||||
super({ url: '', options: { path } }, appRef);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user