Skip to content

Commit

Permalink
Merge pull request #129 from perawallet/fix/custom-bridge-issue
Browse files Browse the repository at this point in the history
fix(bridge): solve custom url issue
  • Loading branch information
mucahit authored Apr 12, 2023
2 parents e4d0126 + eb27a41 commit 7ab1cde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.2",
"version": "1.2.3",
"name": "@perawallet/connect",
"description": "JavaScript SDK for integrating Pera Wallet to web applications.",
"main": "dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions src/PeraWalletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@ class PeraWalletConnect {
try {
const walletDetails = getWalletDetailsFromStorage();

if (!walletDetails) {
resolve([]);

return;
}

// ================================================= //
// Pera Wallet Web flow
if (walletDetails?.type === "pera-wallet-web") {
Expand Down

0 comments on commit 7ab1cde

Please sign in to comment.