upgrade to angular 20

This commit is contained in:
Alex Shnitman
2025-12-05 11:24:44 +02:00
parent 53944244a7
commit 9907e1b885
5 changed files with 2654 additions and 2393 deletions

View File

@@ -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);
}
}