Update action-collector.js

This commit is contained in:
SubleXBle
2025-08-16 19:16:04 +02:00
committed by GitHub
parent 30ee99d761
commit de6374fdb3

View File

@@ -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 => {