Skip to content

Commit a2b5728

Browse files
authored
Merge branch 'master' into ft/oas3-tio
2 parents 5bc096d + f618ed6 commit a2b5728

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/issue_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ or anything that violates the specifications.
2525
| Which Swagger/OpenAPI version? |
2626
| Which Swagger-UI version? |
2727
| How did you install Swagger-UI? |
28-
| Which broswer & version? |
28+
| Which browser & version? |
2929
| Which operating system? |
3030

3131

dev-helpers/oauth2-redirect.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
var redirectUrl = oauth2.redirectUrl;
1212
var isValid, qp, arr;
1313

14-
qp = (window.location.hash || location.search).substring(1);
14+
if (/code|token|error/.test(window.location.hash)) {
15+
qp = window.location.hash.substring(1);
16+
} else {
17+
qp = location.search.substring(1);
18+
}
1519

1620
arr = qp.split("&")
1721
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})

dist/oauth2-redirect.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
var redirectUrl = oauth2.redirectUrl;
1212
var isValid, qp, arr;
1313

14-
qp = (window.location.hash || location.search).substring(1);
14+
if (/code|token|error/.test(window.location.hash)) {
15+
qp = window.location.hash.substring(1);
16+
} else {
17+
qp = location.search.substring(1);
18+
}
1519

1620
arr = qp.split("&")
1721
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})

0 commit comments

Comments
 (0)