Skip to content

Commit

Permalink
added save button to debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
doudar committed Dec 16, 2024
1 parent 718f402 commit 1ae3e0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ <h2>Debug Console</h2>

document.getElementById('saveLogButton').addEventListener('click', () => {
const debugElement = document.getElementById('debug');
const logContent = debugElement.textContent;
logContent = debugElement.textContent;
logContent = logContent.replace(/(\[\s*\d+\])/g, '\n$1');
const blob = new Blob([logContent], { type: 'text/plain' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
Expand Down

0 comments on commit 1ae3e0f

Please sign in to comment.