UNPKG

@tronweb3/tronwallet-adapter-bitkeep

Version:

Wallet adapter for Bitget(BitKeep) Wallet extension and app.

18 lines 760 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.supportBitgetWallet = supportBitgetWallet; exports.openBitgetWallet = openBitgetWallet; const tronwallet_abstract_adapter_1 = require("@tronweb3/tronwallet-abstract-adapter"); function supportBitgetWallet() { return !!window.tronLink && window.isBitKeep; } function openBitgetWallet() { if ((0, tronwallet_abstract_adapter_1.isInMobileBrowser)() && !supportBitgetWallet()) { const { origin, pathname, search, hash } = window.location; const url = origin + pathname + search + hash; location.href = `https://bkcode.vip?action=dapp&url=${encodeURIComponent(url)}`; return true; } return false; } //# sourceMappingURL=utils.js.map