Skip to content

Commit

Permalink
bug fix on plug lock state connet
Browse files Browse the repository at this point in the history
  • Loading branch information
joegeorge-git committed Jul 11, 2024
1 parent d51ac16 commit 1a90339
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "artemis-web3-adapter",
"version": "1.1.4",
"version": "1.1.5",
"description": "dfinity wallet adapter for connecting different wallets in IC",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 1 addition & 3 deletions src/wallets/plug.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export const plug = {
var publicKey = false, prinObj = false;
var isConnected = false;
const timeoutPromise = new Promise((resolve) => { setTimeout(() => { resolve(false); }, 3000) });
isConnected = await Promise.race([window.ic.plug.isConnected(), timeoutPromise]);

console.log(isConnected ,'isConnected')
isConnected = await window.ic.plug.isConnected(); //Promise.race([window.ic.plug.isConnected(), timeoutPromise]);

try {
if (isConnected) {
Expand Down

0 comments on commit 1a90339

Please sign in to comment.