Merge pull request #73 from stavros-zavrakas/fix/hardcoded-port

Fix the hardcoded port
pull/88/merge
Pablo Fuente Pérez 2018-06-18 10:22:27 +02:00 committed by GitHub
commit 2c139e88af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ export class LayoutBestFitComponent implements OnInit, OnDestroy {
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 + port + '?sessionId=' + this.sessionId + '&secret=' + this.secret + '&recorder=true';
this.session.connect(token)
.catch(error => {
console.error(error);