fix the hardcoded port

pull/73/head
Stavros Zavrakas 2018-06-15 10:36:34 +01:00
parent 263db59bdd
commit 02e3d471d9
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ export class LayoutBestFitComponent implements OnInit, OnDestroy {
this.updateLayout(changeFixedRatio); this.updateLayout(changeFixedRatio);
}); });
const token = 'wss://' + location.hostname + ':4443?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true'; const port = !!location.port ? (':' + location.port) : '';
const token = 'wss://' + location.hostname + location.port + '?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true';
this.session.connect(token) this.session.connect(token)
.catch(error => { .catch(error => {
console.error(error); console.error(error);