UNPKG

@broxus/tvm-connect

Version:

TypeScript SDK for connecting to Nekoton-compatible wallets using a unified interface.

16 lines (15 loc) 566 B
export function isSparXWalletBrowser(ua) { return /(SparXWalletBrowser|SparXWallet)/g.test(ua); } export function isEverWalletBrowser(ua) { return /(EverWalletBrowser|EverWallet)/g.test(ua); } export function isVenomWalletBrowser(ua) { return /(VenomWalletBrowser|VenomWallet)/g.test(ua); } export function isOxyChatWalletBrowser(ua) { return /(OxyWalletBrowser|OxyWallet)/g.test(ua); } export function isNekotonWebview(ua) { return isSparXWalletBrowser(ua) || isEverWalletBrowser(ua) || isVenomWalletBrowser(ua) || isOxyChatWalletBrowser(ua); }