Skip to content

Commit 8901169

Browse files
committed
feat: adds location to platform headers
1 parent e814248 commit 8901169

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/thirdweb/src/utils/fetch.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ export function getPlatformHeaders() {
228228
...(bundleId ? { "x-bundle-id": bundleId } : {}),
229229
});
230230

231+
if (typeof window !== "undefined") {
232+
previousPlatform.push(["x-sdk-location", window.location.href]);
233+
}
234+
231235
return previousPlatform;
232236
}
233237

0 commit comments

Comments
 (0)