remove dup notif
This commit is contained in:
@@ -2030,7 +2030,6 @@ function updateModListPagination() {
|
||||
async function updateMods() {
|
||||
try {
|
||||
const key = `action-update-mods`;
|
||||
const notification = showNotification('Updating mods...', 'loading', key);
|
||||
const response = await wsRequest('/update-mods', 'POST');
|
||||
if (response.error) {
|
||||
elements.updateModsOutput.textContent = `Error: ${response.error}`;
|
||||
@@ -2038,7 +2037,6 @@ function updateModListPagination() {
|
||||
} else {
|
||||
const output = response.output || 'No output from mod update.';
|
||||
elements.updateModsOutput.textContent = output;
|
||||
showNotification('Mods updated successfully', 'success', key);
|
||||
}
|
||||
elements.updateModsModal.classList.remove('hidden');
|
||||
} catch (error) {
|
||||
|
Reference in New Issue
Block a user