Skip to content

Commit

Permalink
Restricted access from non-mobile device (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Nov 27, 2024
1 parent b20e497 commit 6ad60ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webapp/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
gtag('config', 'G-PZ1CMW2QSD');

const bowser = window.bowser.getParser(window.navigator.userAgent);
if ((typeof TelegramWebviewProxy === "undefined" && !Telegram?.WebApp?.initData) || (bowser.getPlatform() === 'desktop')) {
if ((typeof TelegramWebviewProxy === "undefined" && !Telegram?.WebApp?.initData) || (bowser.getPlatform()?.type === 'desktop')) {
window.location.href = "/not-support.html";
}
</script>
Expand Down

0 comments on commit 6ad60ab

Please sign in to comment.