Skip to content

Commit

Permalink
Merge pull request #252 from Senyoret1/http
Browse files Browse the repository at this point in the history
Make the manager open the terminal with the same protocol
  • Loading branch information
jdknives authored Mar 26, 2020
2 parents 54de424 + 7a1ddee commit 84ad57a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ export class ActionsComponent implements AfterViewInit, OnDestroy {
SelectOptionComponent.openDialog(this.dialog, options).afterClosed().subscribe((selectedOption: number) => {
if (selectedOption === 1) {
// Open the complete terminal in a new tab.
const protocol = window.location.protocol;
const hostname = window.location.host.replace('localhost:4200', '127.0.0.1:8080');
window.open('https://' + hostname + '/pty/' + NodeComponent.getCurrentNodeKey(), '_blank', 'noopener noreferrer');
window.open(protocol + '//' + hostname + '/pty/' + NodeComponent.getCurrentNodeKey(), '_blank', 'noopener noreferrer');
} else if (selectedOption === 2) {
// Open the simple terminal in a modal window.
BasicTerminalComponent.openDialog(this.dialog, {
Expand Down

0 comments on commit 84ad57a

Please sign in to comment.