Skip to content

Commit

Permalink
fix(wallet): origin if opened over file:// (cordova)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed May 29, 2024
1 parent 10a97f1 commit d529f30
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 d529f30

Please sign in to comment.