Skip to content

Commit

Permalink
Load the version as selected in the dropdown, support current
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrutter committed Apr 5, 2024
1 parent eae3585 commit d9d7f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (hostname) {
} else {
// use version as specified in the version dropdown
let selectedVersion = versionSelect.value;
if (selectedVersion === "openapi_latest"){
if (selectedVersion === "openapi_latest" || version === "current"){
rapidoc.setAttribute("spec-url", `./definitions/openapi_latest.json`);
} else {
rapidoc.setAttribute("spec-url", `./definitions/${selectedVersion}.json`);
Expand Down

0 comments on commit d9d7f3d

Please sign in to comment.