]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/material/js/shortcuts/main.js
Disabled shortcuts on login/register page
[github/wallabag/wallabag.git] / app / Resources / static / themes / material / js / shortcuts / main.js
index 0a2d2a6966349eaafdc9d9eb9037a264b918bad0..41499478cf4288b73716283a77038eb2acab5199 100644 (file)
@@ -23,6 +23,11 @@ $(document).ready(() => {
     return;
   }
 
+  /* Show nothing on login/register page */
+  if ($('#username').length > 0 || $('#fos_user_registration_form_username').length > 0) {
+    return;
+  }
+
   /* Focus current card */
   toggleFocus(card);