Index: tracing/tracing/base/xhr.html |
diff --git a/tracing/tracing/base/xhr.html b/tracing/tracing/base/xhr.html |
index b4835f72ab8be1f9e426b80610a9275161223cb9..cde65905a0130d364e5c8c577deca65456549c61 100644 |
--- a/tracing/tracing/base/xhr.html |
+++ b/tracing/tracing/base/xhr.html |
@@ -35,7 +35,7 @@ tr.exportTo('tr.b', function() { |
if (!async) { |
req.send(data); |
- if (req.status == 200) { |
+ if (req.status === 200) { |
return req.responseText; |
} else { |
throw new Error('XHR failed with status ' + req.status); |
@@ -44,9 +44,9 @@ tr.exportTo('tr.b', function() { |
var p = new Promise(function(resolve, reject) { |
req.onreadystatechange = function(aEvt) { |
- if (req.readyState == 4) { |
+ if (req.readyState === 4) { |
window.setTimeout(function() { |
- if (req.status == 200) { |
+ if (req.status === 200) { |
if (req.responseType === 'arraybuffer') |
return resolve(req.response); |
return resolve(req.responseText); |