UNPKG

@broxus/tvm-connect

Version:

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

23 lines (22 loc) 867 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isSparXWalletBrowser = isSparXWalletBrowser; exports.isEverWalletBrowser = isEverWalletBrowser; exports.isVenomWalletBrowser = isVenomWalletBrowser; exports.isOxyChatWalletBrowser = isOxyChatWalletBrowser; exports.isNekotonWebview = isNekotonWebview; function isSparXWalletBrowser(ua) { return /(SparXWalletBrowser|SparXWallet)/g.test(ua); } function isEverWalletBrowser(ua) { return /(EverWalletBrowser|EverWallet)/g.test(ua); } function isVenomWalletBrowser(ua) { return /(VenomWalletBrowser|VenomWallet)/g.test(ua); } function isOxyChatWalletBrowser(ua) { return /(OxyWalletBrowser|OxyWallet)/g.test(ua); } function isNekotonWebview(ua) { return isSparXWalletBrowser(ua) || isEverWalletBrowser(ua) || isVenomWalletBrowser(ua) || isOxyChatWalletBrowser(ua); }