Skip to content

Commit

Permalink
feat: decode url
Browse files Browse the repository at this point in the history
  • Loading branch information
alerdenisov committed Feb 1, 2024
1 parent 1f7e7a0 commit 553bae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<html>
<head></head>
<body>
<div id="test"></div>
<script>
const url = window.Telegram.WebApp.initDataUnsafe.start_param;
document.write(url)
document.getElementById("test").innerHTML = decodeURIComponent(url)
// window.Telegram.WebApp.openTelegramLink(url);
// window.Telegram.WebApp.close();
</script>
Expand Down

0 comments on commit 553bae4

Please sign in to comment.