Skip to content

fix(tonconnect): use 'browser' platform for extension#549

Merged
nvasilchuk merged 3 commits intomainfrom
fix/PRO-411-tonconnect-platform-browser
Feb 17, 2026
Merged

fix(tonconnect): use 'browser' platform for extension#549
nvasilchuk merged 3 commits intomainfrom
fix/PRO-411-tonconnect-platform-browser

Conversation

@mois-ilya
Copy link
Copy Markdown
Contributor

@mois-ilya mois-ilya commented Feb 3, 2026

Summary

  • Add centralized getTonConnectPlatform(targetEnv) function for TonConnect DeviceInfo platform
  • Extension returns 'browser', other environments use browser detection
  • Make getBrowserPlatform private (internal use only)

Changes

  • core: Add getTonConnectPlatform() in connectService.ts
  • uikit: Use getTonConnectPlatform(sdk.targetEnv) in TonConnectNotification
  • extension: Use getTonConnectPlatform('extension') in both TonConnect files
  • mobile: Use getTonConnectPlatform('mobile') for consistency

Why

Platform determination was duplicated and inconsistent. Now there's a single source of truth.

Fixes PRO-411

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 3, 2026

Successful WEB deployment 🚀🚀🚀

Well done!
Link to test environment:
https://681f4f2a.tonkeeper-web.pages.dev

@BAHRALMN16
Copy link
Copy Markdown

اهلا بك يااخي وشكرا لك ولاكن انا لا لا أفهم اينه تكون الملفات 📂 التي تتكلم عنها ممكن توضيح أكثر وشكرا علا جهجهودكم

@Anonym-tsk
Copy link
Copy Markdown

lgtm

@nvasilchuk nvasilchuk self-requested a review February 10, 2026 12:30
@nvasilchuk nvasilchuk merged commit 2d790ce into main Feb 17, 2026
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants