Eliminate the need for the ES6 module backflips in Standalone example
This commit is contained in:
3
dist/index.html
vendored
3
dist/index.html
vendored
@@ -77,8 +77,7 @@ window.onload = function() {
|
||||
dom_id: '#swagger-ui',
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
// yay ES6 modules ↘
|
||||
Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset : SwaggerUIStandalonePreset.default
|
||||
SwaggerUIStandalonePreset
|
||||
],
|
||||
plugins: [
|
||||
SwaggerUIBundle.plugins.DownloadUrl
|
||||
|
||||
Reference in New Issue
Block a user