Skip to content

Commit 24066f6

Browse files
authored
Exclude closing script tags in HAR files (#4500)
1 parent 78bfa20 commit 24066f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/html/templates/url/waterfall/includeHARinHTML.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//- specific run (the median run) in summaryPageHAR.
44
//- Inline script tags breaks the output
55
- dahar = h.get(pageInfo.data, 'browsertime.run.har', summaryPageHAR)
6-
- dahar = JSON.stringify(dahar.log).split('</script>').join('&lt;/script&gt;')
6+
- dahar = JSON.stringify(dahar.log).split('</script>').join('&lt;/script&gt;').split('<script>').join('&lt;script&gt;')
77

88
script(src= assetsPath + 'js/perf-cascade.min.js')
99
script(type='text/javascript').

0 commit comments

Comments
 (0)