Fix codacy

This commit is contained in:
DL6ER
2017-01-02 17:18:54 +01:00
parent 1438a9d71a
commit 0e37bc89a9

View File

@@ -199,7 +199,7 @@ if(versionCompare(piholeVersion, "v2.9.5") < 1)
// Handle Strg + Enter button on Login page
$(document).keypress(function(e) {
if((e.keyCode == 10 || e.keyCode == 13) && e.ctrlKey && $("#loginpw").is(":focus")) {
if((e.keyCode === 10 || e.keyCode === 13) && e.ctrlKey && $("#loginpw").is(":focus")) {
$("#loginform").attr("action", "settings.php");
$("#loginform").submit();
}