Skip to content

Commit 55aec02

Browse files
committed
use openapi-explorer version working with base tag
Authress-Engineering/openapi-explorer#292
1 parent a2e3898 commit 55aec02

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

app/views/api_docs/index.html.erb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
<%= nonced_javascript_tag do %>
44
(function() {
5-
// TODO: remove as soon as openapi-explorer with https://github.com/Authress-Engineering/openapi-explorer/pull/292 is released
6-
const originalPushState = history.pushState;
7-
history.pushState = function(state, title, url) {
8-
return originalPushState.call(this, state, title, URL.parse(url, location.href).href);
9-
};
10-
115
// set openapi-explorer parent width and height explicitly to prevent them being set to 100vw/100vh by the script
126
// which leads to double scroll bars
137
// https://github.com/Authress-Engineering/openapi-explorer/blob/49d4d32de6fd7b14a8f5f95fbfefa8cd72e72587/src/openapi-explorer.js#L191-L196

frontend/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
"ngx-cookie-service": "^21.1.0",
164164
"observable-array": "0.0.4",
165165
"op-blocknote-extensions": "https://github.com/opf/op-blocknote-extensions/releases/download/v0.0.19/op-blocknote-extensions-0.0.19.tgz",
166-
"openapi-explorer": "^2.4.784",
166+
"openapi-explorer": "^2.4.786",
167167
"pako": "^2.0.3",
168168
"qr-creator": "^1.0.0",
169169
"react": "^19.2.1",

0 commit comments

Comments
 (0)