Skip to content

Commit

Permalink
fix the link error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dou Du committed May 16, 2024
1 parent 5fdcd7a commit 1416efd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ export class AppmodePreview extends DocumentWidget<IFrame, INotebookModel> {

switch (event.data?.level) {
case 'debug':
console.debug(...event.data?.msg);
console.debug(...(event.data?.msg || {}));
break;

case 'info':
console.info(...event.data?.msg);
console.debug(...(event.data?.msg || {}));
break;

case 'warn':
console.warn(...event.data?.msg);
console.debug(...(event.data?.msg || {}));
break;

case 'error':
console.error(...event.data?.msg);
console.debug(...(event.data?.msg || {}));
break;

default:
Expand Down

0 comments on commit 1416efd

Please sign in to comment.