diff --git a/package.json b/package.json index dcfef06..cd18689 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perawallet/connect", - "version": "0.0.6", + "version": "0.0.7", "description": "JavaScript SDK for integrating Pera Wallet to web applications.", "main": "dist/index.js", "scripts": { diff --git a/src/modal/_pera-wallet-connect-modal.scss b/src/modal/_pera-wallet-connect-modal.scss index ad6de34..80ba2af 100644 --- a/src/modal/_pera-wallet-connect-modal.scss +++ b/src/modal/_pera-wallet-connect-modal.scss @@ -124,8 +124,11 @@ } .pera-wallet-connect-modal__qr-code { + cursor: none; + text-align: center; } + .pera-wallet-connect-modal__qr-code__text { margin-bottom: 15px; } diff --git a/src/util/peraWalletUtils.ts b/src/util/peraWalletUtils.ts index f2c4820..649706a 100644 --- a/src/util/peraWalletUtils.ts +++ b/src/util/peraWalletUtils.ts @@ -1,4 +1,4 @@ -import {detectBrowser} from "./device/deviceUtils"; +import {detectBrowser, isAndroid} from "./device/deviceUtils"; import {PERA_WALLET_APP_DEEP_LINK} from "./peraWalletConstants"; /** @@ -9,6 +9,10 @@ function generatePeraWalletDeeplink(uri: string): string { let deeplink = `${PERA_WALLET_APP_DEEP_LINK}wc?uri=${encodeURIComponent(uri)}`; const browserName = detectBrowser(); + if (isAndroid()) { + deeplink = uri; + } + if (browserName) { deeplink = `${deeplink}&browser=${browserName}`; }