Index: tracing/tracing/trace2html.html |
diff --git a/tracing/tracing/trace2html.html b/tracing/tracing/trace2html.html |
index 4b410cb040e2c4460e25b4f4d5d547a8502dc170..60378b1a649d014cc268b31ee573055eb58a0e50 100644 |
--- a/tracing/tracing/trace2html.html |
+++ b/tracing/tracing/trace2html.html |
@@ -50,8 +50,9 @@ document.addEventListener('DOMContentLoaded', function() { |
for (var i = 0; i < viewerDataScripts.length; i++) { |
var text = Polymer.dom(viewerDataScripts[i]).textContent; |
// Trim leading newlines off the text. They happen during writing. |
- while (text[0] === '\n') |
+ while (text[0] === '\n') { |
text = text.substring(1); |
+ } |
traces.push(tr.b.Base64.atob(text)); |
} |