From 872897e760c65c2dd0bf656b8293ddc6b6485fb9 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Mon, 15 Oct 2018 16:51:23 +0200 Subject: [PATCH] Add Twitter Widgets API --- tarteaucitron.services.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index cfb59c0..72f6254 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1270,6 +1270,20 @@ tarteaucitron.services.jsapi = { } }; +// twitterwidgetsapi +tarteaucitron.services.twitterwidgetsapi = { + "key": "twitterwidgetsapi", + "type": "api", + "name": "Twitter Widgets API", + "uri": "https://support.twitter.com/articles/20170514", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs'); + } +}; + // recaptcha tarteaucitron.services.recaptcha = { "key": "recaptcha",