mirror of
https://github.com/alexta69/metube.git
synced 2026-06-16 00:30:04 +00:00
feat: integrated Web Share Target API for PWA
This commit is contained in:
@@ -3,7 +3,9 @@ import { Socket } from 'ngx-socket-io';
|
||||
|
||||
@Injectable()
|
||||
export class MeTubeSocket extends Socket {
|
||||
constructor() {
|
||||
super({ url: '', options: {path: document.location.pathname + 'socket.io'} });
|
||||
}
|
||||
constructor() {
|
||||
const path =
|
||||
document.location.pathname.replace(/share-target/, '') + 'socket.io';
|
||||
super({ url: '', options: { path } });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user