From d529f304ab26a829598dbde6b0db37f6f7480f42 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Sat, 27 Apr 2024 16:22:14 +1000 Subject: [PATCH] fix(wallet): origin if opened over file:// (cordova) --- src/AeSdkWallet.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AeSdkWallet.ts b/src/AeSdkWallet.ts index d88a9c402e..b51c95e00d 100644 --- a/src/AeSdkWallet.ts +++ b/src/AeSdkWallet.ts @@ -358,11 +358,12 @@ export default class AeSdkWallet extends AeSdk { * @returns Object with wallet information */ async getWalletInfo(): Promise { + 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, }; }