getNetwork closes window
Opened this issue · 1 comments
guillaume-xrpl commented
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 commented
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?