Skip to content

Commit a696e53

Browse files
authored
update sdk to pass location in postmessage (#1443)
1 parent 28e8f2d commit a696e53

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/wallet-sdk/src/core/communicator/Communicator.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ describe('Communicator', () => {
118118
version: VERSION,
119119
metadata: appMetadata,
120120
preference,
121+
location: 'http://localhost:3000/',
121122
},
122123
},
123124
urlOrigin
@@ -145,6 +146,7 @@ describe('Communicator', () => {
145146
version: VERSION,
146147
metadata: appMetadata,
147148
preference,
149+
location: 'http://localhost:3000/',
148150
},
149151
},
150152
urlOrigin
@@ -167,6 +169,7 @@ describe('Communicator', () => {
167169
version: VERSION,
168170
metadata: appMetadata,
169171
preference,
172+
location: 'http://localhost:3000/',
170173
},
171174
},
172175
urlOrigin

packages/wallet-sdk/src/core/communicator/Communicator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export class Communicator {
113113
version: VERSION,
114114
metadata: this.metadata,
115115
preference: this.preference,
116+
location: window.location.toString(),
116117
},
117118
});
118119
})

0 commit comments

Comments
 (0)