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