We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c235ce commit a5a05d8Copy full SHA for a5a05d8
build-tools/src/main/resources/ui-dist/index.js
@@ -51,7 +51,19 @@
51
window.ui = ui;
52
53
atlasLogo = gatewayUrl + "/img/atlas_logo.svg";
54
- $('#swagger-ui img').attr("src", atlasLogo);
+ setTimeout(() => {
55
+ const logoAnchor = document.querySelector(".swagger-ui .topbar a");
56
+
57
+ if (logoAnchor) {
58
+ const svgLogo = logoAnchor.querySelector("svg");
59
+ if (svgLogo) svgLogo.remove();
60
+ const img = document.createElement("img");
61
+ img.src = atlasLogo;
62
+ img.alt = "Atlas Logo";
63
+ img.style.height = "40px";
64
+ logoAnchor.appendChild(img);
65
+ }
66
+ }, 500);
67
68
fetchCsrfHeader();
69
}
0 commit comments