File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const Swagger = ({ url }: { url: string }) => {
88 const [ isLoading , setLoading ] = useState ( true )
99 const [ spec , setSpec ] = useState < string | undefined > ( undefined )
1010
11- const unkpgUrl = "https://unpkg.com/[email protected] " 11+ const unpkgUrl = "https://unpkg.com/[email protected] " 1212
1313 useEffect ( ( ) => {
1414 fetch ( url )
@@ -26,7 +26,7 @@ const Swagger = ({ url }: { url: string }) => {
2626 }
2727
2828 const script = document . createElement ( "script" )
29- script . src = `${ unkpgUrl } /swagger-ui-bundle.js`
29+ script . src = `${ unpkgUrl } /swagger-ui-bundle.js`
3030 script . async = true
3131 script . onload = ( ) => {
3232 const SwaggerUI = window . SwaggerUIBundle
@@ -44,7 +44,7 @@ const Swagger = ({ url }: { url: string }) => {
4444
4545 const link = document . createElement ( "link" )
4646 link . rel = "stylesheet"
47- link . href = `${ unkpgUrl } /swagger-ui.css`
47+ link . href = `${ unpkgUrl } /swagger-ui.css`
4848 document . head . appendChild ( link )
4949
5050 return ( ) => {
You can’t perform that action at this time.
0 commit comments