Skip to content

Commit

Permalink
add some indenting of the json output
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamjan committed Dec 31, 2023
1 parent 60da45e commit 6736bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playground/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function createModule(code, consoleSelector) {
newModule.textContent = `
const console = { log: (msg) => {
const el = document.querySelector('${consoleSelector}');
el.innerText += JSON.stringify(msg) + '\\n';
el.innerText += JSON.stringify(msg, null, '\\t') + '\\n';
el.scrollTo({top: el.scrollHeight});
}};
`;
Expand Down

0 comments on commit 6736bc4

Please sign in to comment.