From 5e8f7290e86ef83e4ebee94fa33f57ab120b6168 Mon Sep 17 00:00:00 2001 From: Guilhem Niot Date: Fri, 29 May 2020 18:15:57 +0200 Subject: [PATCH] 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 --- Resources/public/init-swagger-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/public/init-swagger-ui.js b/Resources/public/init-swagger-ui.js index 8be4223..892a2b6 100644 --- a/Resources/public/init-swagger-ui.js +++ b/Resources/public/init-swagger-ui.js @@ -5,7 +5,7 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -window.onload = () => { +window.onload = function() { const data = JSON.parse(document.getElementById('swagger-data').innerText); const ui = SwaggerUIBundle({ spec: data.spec,