From 7dd9ec56660aeab3d674328518c45be06c638569 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 3 Feb 2023 11:33:58 +0100 Subject: [PATCH] Add Tiktok Video Fix #1052 --- tarteaucitron.services.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index c10693c..aa70f1e 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -37,6 +37,28 @@ tarteaucitron.services.iframe = { } }; +// tiktokvideo +tarteaucitron.services.tiktokvideo = { + "key": "tiktokvideo", + "type": "video", + "name": "Tiktok Video", + "uri": "https://www.tiktok.com/legal/page/eea/privacy-policy/en", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + + tarteaucitron.addScript('https://www.tiktok.com/embed.js'); + }, + "fallback": function () { + "use strict"; + var id = 'tiktokvideo'; + tarteaucitron.fallback(['tiktok-embed'], function (elem) { + return tarteaucitron.engage(id); + }); + } +}; + // shinystat tarteaucitron.services.shinystat = { "key": "shinystat",