Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getNetwork closes window #359

Open
guillaume-xrpl opened this issue Mar 14, 2024 · 1 comment
Open

getNetwork closes window #359

guillaume-xrpl opened this issue Mar 14, 2024 · 1 comment

Comments

@guillaume-xrpl
Copy link

Hi,

The code below pops the gem wallet into another window and quits unexpectedly without returning to the browser. When I switch back to the browser I see the data but it should be automatic as with other functions.

async getNetwork() {
	isInstalled().then((response) => {
		if (response.result.isInstalled) {
			getNetwork().then((response) => {
			this.network = response.result?.network;
			});
		} else {
			alert('Please install Gem wallet')
		}
	});			
},

Do you know why it's doing this?

I am using Google Chrome on a Macbook Pro.

Best.

@FlorianBouron
Copy link
Collaborator

Hi @guillaume-xrpl,
Do you make sure that the GemWallet SDK is properly loaded before you run this code?
Do you run this code with the CDN code or from the npm package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants