Change arrow function to an IE11 compatible function

Imports https://github.com/api-platform/core/pull/2899 and fixes https://github.com/nelmio/NelmioApiDocBundle/issues/1517
This commit is contained in:
Guilhem Niot 2020-05-29 18:15:57 +02:00 committed by GitHub
parent 2a78b42a94
commit 5e8f7290e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
// For the full copyright and license information, please view the LICENSE // For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code. // file that was distributed with this source code.
window.onload = () => { window.onload = function() {
const data = JSON.parse(document.getElementById('swagger-data').innerText); const data = JSON.parse(document.getElementById('swagger-data').innerText);
const ui = SwaggerUIBundle({ const ui = SwaggerUIBundle({
spec: data.spec, spec: data.spec,