mirror of https://github.com/tiangolo/fastapi.git
✨ Add ReDoc `<noscript>` warning when JS is disabled (#5074)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
parent
26c68c6e0d
commit
de6ccd7754
|
|
@ -106,6 +106,9 @@ def get_redoc_html(
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<noscript>
|
||||||
|
ReDoc requires Javascript to function. Please enable it to browse the documentation.
|
||||||
|
</noscript>
|
||||||
<redoc spec-url="{openapi_url}"></redoc>
|
<redoc spec-url="{openapi_url}"></redoc>
|
||||||
<script src="{redoc_js_url}"> </script>
|
<script src="{redoc_js_url}"> </script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue