We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
1 parent c7a605b commit 5a4b400Copy full SHA for 5a4b400
main.go
@@ -478,8 +478,8 @@ const homeTemplateHtml = `<!DOCTYPE html>
478
$('#export').click(function() {
479
var link = document.createElement('a');
480
link.setAttribute('download', 'agent-log.txt');
481
- var text = log.innerHTML.replace(/<br>/g, '\n');
482
- text = text.replace(/<b>|<\/b>/g, '');
+ var text = log.innerHTML.replace(/<br>/g, '\n');
+ text = text.replace(/<b>|<\/b>/g, '');
483
link.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
484
link.click();
485
});
0 commit comments