diff options
author | Alex <alexta69@gmail.com> | 2019-12-06 14:16:19 +0200 |
---|---|---|
committer | Alex <alexta69@gmail.com> | 2019-12-06 14:37:08 +0200 |
commit | 91cee0339a8b41014fc69a994e7eb719ad029d3a (patch) | |
tree | 256ba10d705eb2cb24c0914e5c84b13d797e334d /ui/src/app/metube-socket.ts | |
parent | update README with full screenshot URL (diff) | |
download | metube-91cee0339a8b41014fc69a994e7eb719ad029d3a.tar.gz metube-91cee0339a8b41014fc69a994e7eb719ad029d3a.tar.bz2 metube-91cee0339a8b41014fc69a994e7eb719ad029d3a.zip |
fix broken PREFIX_URL feature
Diffstat (limited to 'ui/src/app/metube-socket.ts')
-rw-r--r-- | ui/src/app/metube-socket.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/src/app/metube-socket.ts b/ui/src/app/metube-socket.ts new file mode 100644 index 0000000..cfc8fea --- /dev/null +++ b/ui/src/app/metube-socket.ts @@ -0,0 +1,9 @@ +import { Injectable } from '@angular/core'; +import { Socket } from 'ngx-socket-io'; + +@Injectable() +export class MeTubeSocket extends Socket { + constructor() { + super({ url: '', options: {path: document.location.pathname + 'socket.io'} }); + } +} |