JS sucks
This commit is contained in:
@@ -7,7 +7,7 @@ const callBtn = document.getElementById('callBtn');
|
||||
let conversation = null;
|
||||
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
document.addEventListener('JSsucks', () => {
|
||||
callBtn.addEventListener('click', async () => {
|
||||
console.log('Requesting microphone access...');
|
||||
|
||||
|
||||
@@ -95,6 +95,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
});
|
||||
|
||||
// Attach buy button listeners
|
||||
document.dispatchEvent(new CustomEvent('JSsucks'));
|
||||
|
||||
} catch (err) {
|
||||
console.error('Failed to initialize chat widget:', err);
|
||||
|
||||
Reference in New Issue
Block a user