From 98a84c031eebf6f2fea0fff390219788ddec9556 Mon Sep 17 00:00:00 2001 From: rejas Date: Wed, 5 Jun 2019 08:55:17 +0200 Subject: [PATCH] Better fix for translator comparison --- js/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/translator.js b/js/translator.js index 45c5b23d..08a80c14 100644 --- a/js/translator.js +++ b/js/translator.js @@ -18,7 +18,7 @@ var Translator = (function() { xhr.overrideMimeType("application/json"); xhr.open("GET", file, true); xhr.onreadystatechange = function () { - if (xhr.readyState === 4 && xhr.status === "200") { + if (xhr.readyState === 4 && xhr.status === 200) { callback(JSON.parse(stripComments(xhr.responseText))); } };