repared extensions javascript

This commit is contained in:
Saifeddine ALOUI 2023-04-15 09:33:47 +02:00
parent a7e7f76d91
commit 20c99b25dc

View File

@ -1,7 +1,7 @@
document.getElementById('extensions-link').addEventListener('click', loadHelpPage);
document.getElementById('extensions-link').addEventListener('click', loadExtensionsPage);
function loadHelpPage(event) {
function loadExtensionsPage(event) {
event.preventDefault(); // Prevent the default link behavior
fetch('/extensions')
@ -10,6 +10,6 @@ function loadHelpPage(event) {
document.getElementById('extensions').innerHTML = html;
})
.catch(error => {
console.error('Error loading help page:', error);
console.error('Error loading extensions page:', error);
});
}