Skip to content
Snippets Groups Projects
Commit d32a5469 authored by jojohoch's avatar jojohoch
Browse files

[player] Add logs to console to test the player in TestCenter

parent 74dca7e3
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,8 @@ export class AppComponent implements OnInit { ...@@ -68,6 +68,8 @@ export class AppComponent implements OnInit {
this.pages = unitDefinition.pages; this.pages = unitDefinition.pages;
this.unitStateService.unitStateElementCodes = message.unitState?.dataParts?.elementCodes ? this.unitStateService.unitStateElementCodes = message.unitState?.dataParts?.elementCodes ?
JSON.parse(message.unitState.dataParts.elementCodes) : []; JSON.parse(message.unitState.dataParts.elementCodes) : [];
// eslint-disable-next-line no-console
console.log('player: unitStateElementCodes', this.unitStateService.unitStateElementCodes);
} else { } else {
this.dialog.open(AlertDialogComponent, { this.dialog.open(AlertDialogComponent, {
data: { data: {
......
...@@ -71,6 +71,8 @@ export class VeronaPostService { ...@@ -71,6 +71,8 @@ export class VeronaPostService {
sendVopReadyNotification(playerMetadata: VopMetaData): void { sendVopReadyNotification(playerMetadata: VopMetaData): void {
if (playerMetadata) { if (playerMetadata) {
// eslint-disable-next-line no-console
console.log('player: sendVopReadyNotification', playerMetadata);
this.send({ this.send({
type: 'vopReadyNotification', type: 'vopReadyNotification',
...playerMetadata ...playerMetadata
......
...@@ -6,9 +6,9 @@ import { environment } from './environments/environment'; ...@@ -6,9 +6,9 @@ import { environment } from './environments/environment';
if (environment.production) { if (environment.production) {
enableProdMode(); enableProdMode();
if (window) { // if (window) {
window.console.log = () => {}; // window.console.log = () => {};
} // }
} }
platformBrowserDynamic().bootstrapModule(AppModule) platformBrowserDynamic().bootstrapModule(AppModule)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment