Eliminate the need for the ES6 module backflips in Standalone example
This commit is contained in:
Vendored
+1
-2
@@ -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
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -14,4 +14,4 @@ let preset = [
|
||||
}
|
||||
]
|
||||
|
||||
export default preset
|
||||
module.exports = preset
|
||||
|
||||
Reference in New Issue
Block a user