Browse Source

Fix error in public.js

spaghetti 8 years ago
parent
commit
be37e63f3e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      static/functions/public.js

+ 1
- 1
static/functions/public.js View File

@@ -12,7 +12,7 @@ $(() => {
12 12
     }
13 13
   }
14 14
 
15
-  if ($('#keep2fa')) {
15
+  if ($('#keep2fa').length) {
16 16
     $('#2fa_tr').ghide()
17 17
     $('#keep2fa')[0].onclick = (e) => {
18 18
       $('#2fa_tr')[$('#keep2fa')[0].checked ? 'gshow' : 'ghide']()

Loading…
Cancel
Save