Skip to content

Commit

Permalink
Merge pull request #1980 from aeternity/feature/wallet-cordova-fix
Browse files Browse the repository at this point in the history
fix(wallet): origin if opened over file:// (cordova)
  • Loading branch information
davidyuk authored May 29, 2024
2 parents 5d1599a + d529f30 commit 83c696d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AeSdkWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,12 @@ export default class AeSdkWallet extends AeSdk {
* @returns Object with wallet information
*/
async getWalletInfo(): Promise<WalletInfo> {
const { origin } = window.location;
return {
id: this.id,
name: this.name,
networkId: await this.api.getNetworkId(),
origin: window.location.origin,
origin: origin === 'file://' ? '*' : origin,
type: this._type,
};
}
Expand Down

0 comments on commit 83c696d

Please sign in to comment.