Login button: open Telegram bot deep-link, no modal; label switches to 'Approve in Telegram' and locks
This commit is contained in:
+5
-2
@@ -94,11 +94,14 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
}
|
||||
});
|
||||
|
||||
// Login button
|
||||
// Login button — opens Telegram bot deep-link, then locks itself
|
||||
const loginBtn = document.getElementById('login-btn');
|
||||
if (loginBtn) {
|
||||
loginBtn.addEventListener('click', () => {
|
||||
openLoginModal();
|
||||
// No modal: swap label, drop the link, make the button unclickable
|
||||
loginBtn.innerHTML = 'Approve in Telegram';
|
||||
loginBtn.removeAttribute('href');
|
||||
loginBtn.classList.add('btn-locked');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user