summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-12-16 22:26:30 +0300
committerDevaev Maxim <[email protected]>2018-12-16 22:26:30 +0300
commit68c21d0ccdebf78e4738c443dcdf84adc7a697b3 (patch)
tree46f5e20a784bf410012622927e84e561d385d1f9
parent18842fdd35d387fef89b8b73f40c9db334f54121 (diff)
syntax fix
-rw-r--r--web/share/js/login/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js
index 378ece6c..f949b8cf 100644
--- a/web/share/js/login/main.js
+++ b/web/share/js/login/main.js
@@ -6,7 +6,7 @@ function main() {
tools.setOnClick($("login-button"), __login);
$("user-input").onkeyup = $("passwd-input").onkeyup = function(event) {
- if (event.code == "Enter") {
+ if (event.code === "Enter") {
event.preventDefault();
__login();
}