fix(regression): fetch promise rejections not handled

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz 2023-05-07 22:44:25 +01:00
parent 4247e54c64
commit 3accdc322c
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,9 @@
button.textContent = 'Install Flarum';
});
}
})
.catch(error => {
console.error('Error:', error);
});
return false;

View File

@ -44,6 +44,9 @@
button.textContent = 'Update Flarum';
});
}
})
.catch(error => {
console.error('Error:', error);
});
return false;