lollms-webui/static/js/extensions.js
Saifeddine ALOUI 83e538e0f6 WPI: UI upgrade
2023-04-12 01:07:54 +02:00

15 lines
439 B
JavaScript

document.getElementById('extensions-link').addEventListener('click', loadHelpPage);
function loadHelpPage(event) {
event.preventDefault(); // Prevent the default link behavior
fetch('/extensions')
.then(response => response.text())
.then(html => {
document.getElementById('extensions').innerHTML = html;
})
.catch(error => {
console.error('Error loading help page:', error);
});
}