mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 00:39:16 +02:00
Not sure which has better code, firmware, or this? This is okay, but toy lang. Firmware was horrible.
This commit is contained in:
+2
-5
@@ -116,11 +116,8 @@ function initBanlist() {
|
||||
data: { ip: ipAddress, reason: reason },
|
||||
success: function(response) {
|
||||
// Refresh the page if the request was successful
|
||||
if (response.success) {
|
||||
location.reload();
|
||||
} else {
|
||||
console.error('Failed to add to banlist');
|
||||
}
|
||||
if (response.success) location.reload();
|
||||
else console.error('Failed to add to banlist');
|
||||
},
|
||||
error: function() {
|
||||
console.error('Error occurred during the request');
|
||||
|
||||
Reference in New Issue
Block a user