Only check user info once in main.php
This is to prevent saturating the server.
Change-Id: Id1433832d0eeb2d6868b3c6b421c852a7e627084
diff --git a/main.php b/main.php
index c63556a..fa485c4 100644
--- a/main.php
+++ b/main.php
@@ -124,7 +124,7 @@
<script>
$(document).ready(function() {
// Set interval of checking
- let checking = setInterval(function() { update_info(user); }, 1500);
+ update_info(user);
// Set to hidden or not the password prompt
if (<?=$user->md5password=="" ? 1 : 0?>) {
$.notify("No tens clau d'accés", "info");