Fix: Expose uncloseai.js functions to global scope
Exposed , , , , , , , , , and functions to the global object. This resolves issues when these functions are called directly from HTML attributes, particularly in .
This commit is contained in:
parent
a5fd6902ba
commit
7a6996bc30
1 changed files with 12 additions and 0 deletions
12
uncloseai.js
12
uncloseai.js
|
|
@ -1998,6 +1998,18 @@ Format: Start with "Greetings! I'm Hermes..." and make it sound natural and enga
|
|||
|
||||
const sendButton = document.createElement('button');
|
||||
sendButton.textContent = 'Send';
|
||||
|
||||
// Expose functions to the global scope for direct HTML calls
|
||||
window.handleUserInput = handleUserInput;
|
||||
window.readPageWithHermes = readPageWithHermes;
|
||||
window.openTTSModal = openTTSModal;
|
||||
window.handleTTSFromElement = handleTTSFromElement;
|
||||
window.handleUploadFromElement = handleUploadFromElement;
|
||||
window.uploadFile = uploadFile;
|
||||
window.showProgressIndicator = showProgressIndicator;
|
||||
window.hideProgressIndicator = hideProgressIndicator;
|
||||
window.sendMessage = sendMessage;
|
||||
window.speakText = speakText;
|
||||
if (USE_CUSTOM_STYLING) {
|
||||
sendButton.style.cssText = `
|
||||
padding: 12px 24px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue