This commit is contained in:
Andrey Kondratev
2025-08-29 16:00:05 +05:00
parent 096916eced
commit 9e18de85eb
3 changed files with 69 additions and 28 deletions

View File

@@ -212,7 +212,9 @@ class QuixoticApp {
public async convertVideo(videoId: string, title: string, url: string): Promise<void> {
console.log('🎵 CONVERT VIDEO CALLED:', { videoId, title, url });
console.log('🔧 Telegram WebApp available:', !!this.tg);
const videoElement = document.activeElement as HTMLElement;
// Find the clicked element by looking for the one that contains this videoId
const videoElement = document.querySelector(`[onclick*="${videoId}"]`) as HTMLElement;
if (videoElement) {
videoElement.classList.add('tg-list-item--converting');
}
@@ -328,4 +330,4 @@ class QuixoticApp {
}
const app = new QuixoticApp();
(window as any).app = app;
(window as any).app = app;