mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-23 06:12:22 +00:00
15 lines
457 B
JavaScript
15 lines
457 B
JavaScript
document.getElementById('extensions-link').addEventListener('click', loadExtensionsPage);
|
|
|
|
|
|
function loadExtensionsPage(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 extensions page:', error);
|
|
});
|
|
} |