feat: add debug

parent 7b62d4bf
...@@ -5,6 +5,7 @@ import {DataStore, User} from '../../globals'; ...@@ -5,6 +5,7 @@ import {DataStore, User} from '../../globals';
import {DomSanitizer} from '@angular/platform-browser'; import {DomSanitizer} from '@angular/platform-browser';
import {environment} from '../../../environments/environment'; import {environment} from '../../../environments/environment';
import {NavList} from '../../ControlPage/control/control.component'; import {NavList} from '../../ControlPage/control/control.component';
import {logger} from 'codelyzer/util/logger';
@Component({ @Component({
selector: 'app-element-guacamole', selector: 'app-element-guacamole',
...@@ -35,7 +36,8 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -35,7 +36,8 @@ export class ElementGuacamoleComponent implements OnInit {
DataStore.guacamole_token = data['authToken']; DataStore.guacamole_token = data['authToken'];
this._http.guacamole_token_add_asset(this.token).subscribe( this._http.guacamole_token_add_asset(this.token).subscribe(
_ => { _ => {
this.target = document.location.origin + '/guacamole/#/client/' + data['result'] + '?token=' + DataStore.guacamole_token; this._logger.debug(data);
this.target = document.location.origin + '/guacamole/#/client/' + data['result'] + '?token=' + data['authToken'];
}, },
error2 => { error2 => {
this._logger.error(error2); this._logger.error(error2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment