mirror of
https://github.com/SubleXBle/Fail2Ban-Report.git
synced 2026-02-09 02:08:42 -06:00
Update action-collector.js
This commit is contained in:
@@ -35,8 +35,7 @@ function collectAndExecuteActions(ips, action, jails = []) {
|
||||
const prefix = `[${action.toUpperCase()}] `;
|
||||
const message = data.message || 'No message returned.';
|
||||
const type = data.type || (data.success ? 'success' : 'error');
|
||||
// when Notification - display 10 Seconds
|
||||
const duration = (action === 'report') ? 10000 : 5000;
|
||||
const duration = (action === 'report') ? 5000 : 5000;
|
||||
showNotification(prefix + message, type, duration);
|
||||
})
|
||||
.catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user