Merge branch 'master' into ft/oas3-tio
This commit is contained in:
2
.github/issue_template.md
vendored
2
.github/issue_template.md
vendored
@@ -25,7 +25,7 @@ or anything that violates the specifications.
|
|||||||
| Which Swagger/OpenAPI version? |
|
| Which Swagger/OpenAPI version? |
|
||||||
| Which Swagger-UI version? |
|
| Which Swagger-UI version? |
|
||||||
| How did you install Swagger-UI? |
|
| How did you install Swagger-UI? |
|
||||||
| Which broswer & version? |
|
| Which browser & version? |
|
||||||
| Which operating system? |
|
| Which operating system? |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,11 @@
|
|||||||
var redirectUrl = oauth2.redirectUrl;
|
var redirectUrl = oauth2.redirectUrl;
|
||||||
var isValid, qp, arr;
|
var isValid, qp, arr;
|
||||||
|
|
||||||
qp = (window.location.hash || location.search).substring(1);
|
if (/code|token|error/.test(window.location.hash)) {
|
||||||
|
qp = window.location.hash.substring(1);
|
||||||
|
} else {
|
||||||
|
qp = location.search.substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
arr = qp.split("&")
|
arr = qp.split("&")
|
||||||
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
|
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
|
||||||
|
|||||||
6
dist/oauth2-redirect.html
vendored
6
dist/oauth2-redirect.html
vendored
@@ -11,7 +11,11 @@
|
|||||||
var redirectUrl = oauth2.redirectUrl;
|
var redirectUrl = oauth2.redirectUrl;
|
||||||
var isValid, qp, arr;
|
var isValid, qp, arr;
|
||||||
|
|
||||||
qp = (window.location.hash || location.search).substring(1);
|
if (/code|token|error/.test(window.location.hash)) {
|
||||||
|
qp = window.location.hash.substring(1);
|
||||||
|
} else {
|
||||||
|
qp = location.search.substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
arr = qp.split("&")
|
arr = qp.split("&")
|
||||||
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
|
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
|
||||||
|
|||||||
Reference in New Issue
Block a user