Add Tiktok Video Fix #1052
This commit is contained in:
parent
07bc442cad
commit
7dd9ec5666
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue