From 4ce5e72ccbbd55d7cb6551ccbd2be91c0d0311e1 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 3 Oct 2016 16:29:52 -0400 Subject: [PATCH] Fix typos in type.js --- js/type.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/type.js b/js/type.js index 2c639b9..86ef5d1 100644 --- a/js/type.js +++ b/js/type.js @@ -14,10 +14,10 @@ let repo = hashBits.slice(0, 3).join("/"); let filePath = hashBits.slice(3, hashBits.length).join("/"); // language selector -let langaugeSelector = $("#language"); -langaugeSelector.change(() => { - let selected = langaugeSelector.val(); - var langauge; +let languageSelecor = $("#language"); +languageSelecor.change(() => { + let selected = languageSelecor.val(); + var language; if (selected == "auto-detect") { language = getLanguageByExtension(getFileExtension()); } else { @@ -26,7 +26,7 @@ langaugeSelector.change(() => { setLanguage(language); }); for (key in languages) { - langaugeSelector.append(``); + languageSelecor.append(``); } // theme selector