Index: tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html |
diff --git a/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html b/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html |
index b8ab1a69b3cb466c8d46c594bcc2314838eb7e0c..c66ac7e9c4bc5646135ea66da3e87836f3f47816 100644 |
--- a/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html |
+++ b/tracing/tracing/ui/extras/about_tracing/xhr_based_tracing_controller_client.html |
@@ -16,12 +16,13 @@ tr.exportTo('tr.ui.e.about_tracing', function() { |
var Base64 = tr.b.Base64; |
function beginXhr(method, path, data) { |
- if (data === undefined) |
- data = null; |
+ if (data === undefined) data = null; |
+ |
return new Promise(function(resolve, reject) { |
var req = new XMLHttpRequest(); |
- if (method !== 'POST' && data !== null) |
+ if (method !== 'POST' && data !== null) { |
throw new Error('Non-POST should have data==null'); |
+ } |
req.open(method, path, true); |
req.onreadystatechange = function(e) { |
if (req.readyState === 4) { |