Skip to content

Fix modal, add tg name, resolve errors#1

Draft
Botgamer11 wants to merge 1 commit intomainfrom
cursor/fix-modal-add-tg-name-resolve-errors-6cc1
Draft

Fix modal, add tg name, resolve errors#1
Botgamer11 wants to merge 1 commit intomainfrom
cursor/fix-modal-add-tg-name-resolve-errors-6cc1

Conversation

@Botgamer11
Copy link
Copy Markdown
Owner

Fix modal window functionality and integrate Telegram user name display by removing optional chaining and improving event handling.

The primary issue was that optional chaining (?.) in the Telegram WebApp initialization (window.Telegram?.WebApp, tg.initDataUnsafe?.user) caused scripts to fail entirely in certain WebView environments, preventing modals from opening. This PR removes optional chaining, ensures robust Telegram API calls, and adds click delegation for modals to improve reliability.


Open in Cursor Open in Web

Co-authored-by: ivanus.top <ivanus.top@gmail.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Aug 19, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants