Revert "fix floating button by removing duplicate check before creation"
This reverts commit 37722fe392.
This commit is contained in:
parent
9a56d7f0fa
commit
e7a3371826
1 changed files with 0 additions and 6 deletions
|
|
@ -1153,12 +1153,6 @@ 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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue