diff --git a/src/aashto/src/main/resources/swagger/index.js b/src/aashto/src/main/resources/swagger/index.js index dc24f90f0d66b86603481f9c2089d1f2346ec46a..6f23e6031a5bf40450a9f5f3e5e91a924fae6dd6 100644 --- a/src/aashto/src/main/resources/swagger/index.js +++ b/src/aashto/src/main/resources/swagger/index.js @@ -17,8 +17,21 @@ window.onload = function() { }); window.ui = ui; + + setImage('logo-img', './drupal/images/logo.b64', 'src'); + setImage('banner-img', './uswds/img/us_flag_small.b64', 'src'); + setImage('icon', './favicon.b64', 'href'); }; +function setImage(id, path, attr) { + fetch(path) + .then(res => res.text()) + .then(text => { + const el = document.getElementById(id); + el.setAttribute(attr, text); + }); +} + function updateContextPath(contextPath) { return { statePlugins: {