mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
repared extensions javascript
This commit is contained in:
parent
a7e7f76d91
commit
20c99b25dc
@ -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);
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user