AY il y a 4 ans
Parent
commit
715eab7c1c

+ 1 - 2
webroot/setting/banip.html

@@ -30,8 +30,7 @@
 
 </body>
 <script>
-    var refreshInfo;
-    var currentOnlineUser = [];
+    updateInfo();
     setInterval(function() {
         updateInfo()
     }, 5000);

+ 1 - 2
webroot/setting/banplayer.html

@@ -31,8 +31,7 @@
     </div>
 </body>
 <script>
-    var refreshInfo;
-    var currentOnlineUser = [];
+    updateInfo();
     setInterval(function() {
         updateInfo()
     }, 5000);

+ 1 - 1
webroot/setting/eula.html

@@ -24,7 +24,7 @@
     <div class="ui button" onclick="submit()">Update</div>
 </body>
 <script>
-    updateInfo()
+    updateInfo();
 
     function updateInfo() {
         $.get("/eula", function(data) {

+ 1 - 2
webroot/setting/ops.html

@@ -33,8 +33,7 @@
     </div>
 </body>
 <script>
-    var refreshInfo;
-    var currentOnlineUser = [];
+    updateInfo();
     setInterval(function() {
         updateInfo()
     }, 5000);

+ 1 - 2
webroot/setting/whitelist.html

@@ -29,8 +29,7 @@
     </div>
 </body>
 <script>
-    var refreshInfo;
-    var currentOnlineUser = [];
+    updateInfo();
     setInterval(function() {
         updateInfo()
     }, 5000);