1
0

Remove redundant display style changes in animeCat.js

This commit is contained in:
2025-05-26 03:26:33 +02:00
parent e382b63e40
commit a7379e1a0d

View File

@@ -167,7 +167,6 @@ window.AnimeCat = class AnimeCat {
Array.from(this.bubble.childNodes).forEach(node => {
if (node !== this.bubblePointer) node.remove();
});
this.bubblePointer.style.display = '';
// Neuen (leeren) Textnode einfügen:
this._bubbleTextNode = document.createTextNode('');
this.bubble.appendChild(this._bubbleTextNode);
@@ -192,7 +191,6 @@ window.AnimeCat = class AnimeCat {
this.img.src = this.images.default;
this._speechTimeout = setTimeout(() => {
this.bubble.style.opacity = '0';
this.bubblePointer.style.display = 'none';
this._isSpeaking = false;
}, 6000);
}