fix floating button by removing duplicate check before creation

This commit is contained in:
Russell Ballestrini 2025-06-30 16:55:05 -04:00
parent 0b573a2a86
commit 37722fe392

View file

@ -1153,6 +1153,12 @@ document.getElementById("user-input").addEventListener("keydown", function(event
// Function to create floating AI button
function createFloatingAIButton() {
// Remove any existing floating button first
const existingButton = document.getElementById('floating-ai-button');
if (existingButton) {
existingButton.remove();
}
// Create the main floating button
const floatingButton = document.createElement('button');
floatingButton.id = 'floating-ai-button';