Eliminate the need for the ES6 module backflips in Standalone example

This commit is contained in:
Kyle Shockey
2017-03-27 19:51:45 -07:00
parent bd0fbc60dd
commit 431b67362c
3 changed files with 4 additions and 5 deletions

3
dist/index.html vendored
View File

@@ -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