From 3386656bf31a44d016de32ccd7b4bb7cc31f4d2d Mon Sep 17 00:00:00 2001 From: Luc MULLER Date: Thu, 12 Jan 2023 10:08:53 +0100 Subject: [PATCH] =?UTF-8?q?[services/iframe-scrolling]Autorisation=20du=20?= =?UTF-8?q?scroll=20dans=20l'iframe=20Dans=20le=20service=20iframe=20dynam?= =?UTF-8?q?isation=20du=20paramettre=20scrolling=20via=20un=20attribut=20s?= =?UTF-8?q?crolling/data-scrolling=20Valeur=20par=20d=C3=A9faut=20'no'=20a?= =?UTF-8?q?fin=20de=20conserver=20la=20r=C3=A9trocompatibilit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tarteaucitron.services.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 251f0de..f60205b 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -16,9 +16,14 @@ tarteaucitron.services.iframe = { width = tarteaucitron.getElemAttr(x,"width"), height = tarteaucitron.getElemAttr(x,"height"), allowfullscreen = tarteaucitron.getElemAttr(x,"allowfullscreen"), + scrolling = (tarteaucitron.getElemAttr(x,"scrolling")), url = tarteaucitron.getElemAttr(x,"url"); - return ''; + if(!scrolling){ + scrolling = 'no'; + } + + return ''; }); }, "fallback": function () {