Skip to content

Commit

Permalink
initDataUnsafe adeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminbck committed Jun 22, 2024
1 parent a79fb2b commit 2981b98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ <h1>Logs</h1>
Telegram.WebApp.expand();

// console log
document.getElementById("User").innerHTML = Telegram.WebApp.WebAppInitData.user;
document.getElementById("Chat").innerHTML = Telegram.WebApp.WebAppInitData.chat;
document.getElementById("User").innerHTML = Telegram.WebApp.initDataUnsafe.user;
document.getElementById("Chat").innerHTML = Telegram.WebApp.initDataUnsafe.chat;

// Function to call showPopup API
function showPopup() {
Expand Down

0 comments on commit 2981b98

Please sign in to comment.