Skip to content

Commit d876594

Browse files
fix - location redirection is fixed
1 parent 8cccebb commit d876594

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@puzzle-js/client-lib",
33
"main": "dist/index.js",
4-
"version": "1.4.2",
4+
"version": "1.4.3",
55
"author": "<[email protected]>",
66
"license": "MIT",
77
"repository": {

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class Core extends Module {
161161
if (res['$headers']) {
162162
const locationRedirect = res['$headers'].location || res['$headers'].Location;
163163
if (locationRedirect) {
164-
return location.replace(res['$headers'].location);
164+
return location.replace(locationRedirect);
165165
}
166166
}
167167

0 commit comments

Comments
 (0)