Dooratre commited on
Commit
43c5274
·
verified ·
1 Parent(s): 449f20c

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +6 -0
templates/index.html CHANGED
@@ -1150,5 +1150,11 @@
1150
  inputEl.focus();
1151
  });
1152
  </script>
 
 
 
 
 
 
1153
  </body>
1154
  </html>
 
1150
  inputEl.focus();
1151
  });
1152
  </script>
1153
+ <script>
1154
+ // Remove Telegram fragment from the visible URL (does not break the app)
1155
+ if (location.hash && location.hash.includes("tgWebApp")) {
1156
+ history.replaceState(null, "", location.pathname + location.search);
1157
+ }
1158
+ </script>
1159
  </body>
1160
  </html>