Typekit (by adobe) support

This commit is contained in:
Amauri CHAMPEAUX 2015-02-18 16:50:56 +01:00
parent d4c78ba156
commit 220f464547
1 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google*/
/*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit*/
/*jslint regexp: true, nomen: true*/
// addthis
@ -455,6 +455,28 @@ tarteaucitron.services.sharethis = {
}
};
// typekit
tarteaucitron.services.typekit = {
"key": "typekit",
"type": "api",
"name": "Typekit (adobe)",
"uri": "http://www.adobe.com/fr/privacy.html",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.typekitId === undefined) {
return;
}
tarteaucitron.addScript('//use.typekit.net/' + tarteaucitron.user.typekitId + '.js', '', function () {
try {
Typekit.load();
} catch (e) {}
});
}
};
// twitter
tarteaucitron.services.twitter = {
"key": "twitter",