diff options
Diffstat (limited to 'web_src/js/standalone')
-rw-r--r-- | web_src/js/standalone/swagger.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/standalone/swagger.js b/web_src/js/standalone/swagger.js index 5d8b7192b2..cb91089daf 100644 --- a/web_src/js/standalone/swagger.js +++ b/web_src/js/standalone/swagger.js @@ -2,7 +2,7 @@ import SwaggerUI from 'swagger-ui-dist/swagger-ui-es-bundle.js'; import 'swagger-ui-dist/swagger-ui.css'; window.addEventListener('load', async () => { - const url = document.getElementById('swagger-ui').dataset.source; + const url = document.getElementById('swagger-ui').getAttribute('data-source'); const res = await fetch(url); const spec = await res.json(); |