Better fix for translator comparison

This commit is contained in:
rejas 2019-06-05 08:55:17 +02:00
parent ea1715384e
commit 98a84c031e

View File

@ -18,7 +18,7 @@ var Translator = (function() {
xhr.overrideMimeType("application/json"); xhr.overrideMimeType("application/json");
xhr.open("GET", file, true); xhr.open("GET", file, true);
xhr.onreadystatechange = function () { xhr.onreadystatechange = function () {
if (xhr.readyState === 4 && xhr.status === "200") { if (xhr.readyState === 4 && xhr.status === 200) {
callback(JSON.parse(stripComments(xhr.responseText))); callback(JSON.parse(stripComments(xhr.responseText)));
} }
}; };