Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
prevetal committed Oct 16, 2024
1 parent 4d7cd97 commit e8d3f02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/jetPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
// Init Peer
this.#peer = new Peer(this.#peerID)

alert(window)
// Get telegram user ID from telegram mini app init data
if (window.Telegram && window.Telegram.WebApp) {
alert('111111')
alert('222')
// Decode data
let decodedString = decodeURIComponent(Telegram.WebApp.initData)

Expand Down

0 comments on commit e8d3f02

Please sign in to comment.