From 118bb9a829e7ec0a986059c5175b16e46f2c340c Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 2 Sep 2020 07:40:44 +0200 Subject: [PATCH] Do not append javascript at the body but inject them in the element/module Consent tools might interrupt the rendering --- CHANGELOG.md | 6 ++++++ src/Bundle/Resources/contao/templates/ce_leaflet_map.html5 | 2 +- src/Bundle/Resources/contao/templates/mod_leaflet_map.html5 | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24b67d0..4bb3dfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.2.1] - 2020-09-02 + +### Fixed + + - Do not append javascript to the body anymore as consent tools might interrupt rendering + ## [3.2.0] - 2020-08-28 ### Added diff --git a/src/Bundle/Resources/contao/templates/ce_leaflet_map.html5 b/src/Bundle/Resources/contao/templates/ce_leaflet_map.html5 index d62880d..ab67dd5 100644 --- a/src/Bundle/Resources/contao/templates/ce_leaflet_map.html5 +++ b/src/Bundle/Resources/contao/templates/ce_leaflet_map.html5 @@ -9,5 +9,5 @@ -' . $this->javascript . ''; ?> + diff --git a/src/Bundle/Resources/contao/templates/mod_leaflet_map.html5 b/src/Bundle/Resources/contao/templates/mod_leaflet_map.html5 index 6c7ffbd..ef04a0d 100644 --- a/src/Bundle/Resources/contao/templates/mod_leaflet_map.html5 +++ b/src/Bundle/Resources/contao/templates/mod_leaflet_map.html5 @@ -9,4 +9,4 @@ -' . $this->javascript . ''; ?> +