feat: add close prompt
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m38s
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m38s
This commit is contained in:
@@ -118,6 +118,12 @@ const externalTgApi = {
|
||||
console.log("TMA swipe behavior initialized");
|
||||
}
|
||||
|
||||
if (tg.closingBehavior.mount.ifAvailable()) {
|
||||
tg.closingBehavior.mount();
|
||||
tg.closingBehavior.enableConfirmation();
|
||||
console.log("TMA closing behavior initialized");
|
||||
}
|
||||
|
||||
console.log(
|
||||
import.meta.env.DEV ? "TMA Debug mode in Web initialized" : "Telegram Mini App initialized",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user