File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
apps/agent-tars/src/main/ipcRoutes Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -136,12 +136,17 @@ export const actionRoute = t.router({
136
136
path . join ( __dirname , '../reporter/index.html' ) ,
137
137
'utf-8' ,
138
138
) ;
139
- const reportContent = reportHtmlTemplate . replace (
140
- ' <!-- DATA -->' ,
141
- '<script>window.__OMEGA_REPORT_DATA__ = ' +
142
- JSON . stringify ( messages ) +
143
- ';</script>' ,
144
- ) ;
139
+ const reportContent = reportHtmlTemplate
140
+ . replace (
141
+ ' <!-- DATA -->' ,
142
+ '<script>window.__OMEGA_REPORT_DATA__ = ' +
143
+ JSON . stringify ( messages ) +
144
+ ';</script>' ,
145
+ )
146
+ . replace (
147
+ / < t i t l e > .* ?< \/ t i t l e > / ,
148
+ `<title>${ messages ?. [ 0 ] ?. content || 'Agent TARS' } </title>` ,
149
+ ) ;
145
150
146
151
if ( reportApiUrl ) {
147
152
const tempPath = path . join (
You can’t perform that action at this time.
0 commit comments