From 17ac0458fb895185822676e18fa7b14e80792a77 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Mon, 15 Apr 2019 22:03:35 +0300 Subject: [PATCH] Fix typo --- app/popup/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/popup/popup.js b/app/popup/popup.js index c4639a0..1dfe37d 100644 --- a/app/popup/popup.js +++ b/app/popup/popup.js @@ -300,7 +300,7 @@ function checkStatusLocalServer() { xhr2.open("GET", "http://" + host + "/" + channel + ".json", true); xhr2.timeout = 1000; xhr2.onreadystatechange = function() { - if (xhr1.readyState === 4 && xhr2.status === 200) { + if (xhr2.readyState === 4 && xhr2.status === 200) { document.getElementById("local-server__input__channel").classList.remove("local-server__input__err"); document.getElementById("local-server__input__channel").classList.add("local-server__input__ok"); }