From c8a7ec80d68251daaf915fbafb04962ebf366fec Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 20 Jan 2021 12:00:04 +0100 Subject: [PATCH] Fix #528 --- tarteaucitron.services.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 6cbee02..b182f4c 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -2765,7 +2765,8 @@ tarteaucitron.services.issuu = { frame_width = 'width=', issuu_height = x.getAttribute("height"), frame_height = 'height=', - issuu_frame; + issuu_frame, + issuu_embed; if (issuu_id === undefined) { return ""; @@ -2780,7 +2781,13 @@ tarteaucitron.services.issuu = { } else { frame_height += '"" '; } - issuu_frame = ''; + + + if (issuu_id.match(/\d+\/\d+/)) { issuu_embed = '#' + issuu_id; } else if (issuu_id.match(/d=(.*)&u=(.*)/)) { issuu_embed = '?' + issuu_id; } + + + issuu_frame = ''; + return issuu_frame; }); },