google web fonts

added google web fonts service
This commit is contained in:
breakone 2019-10-29 11:12:44 +01:00 committed by GitHub
parent 989a95f3b9
commit fdf2af2b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -1269,6 +1269,29 @@ tarteaucitron.services.googletagmanager = {
}
};
// google webfonts
tarteaucitron.services.googlefonts = {
"key": "googlefonts",
"type": "api",
"name": "Google Webfonts",
"uri": "https://www.google.com/intl/de/policies/privacy/",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.googleFonts === undefined) {
return;
}
tarteaucitron.addScript('//ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js', '', function () {
WebFont.load({
google: {
families: tarteaucitron.user.googleFonts
}
});
});
}
};
// hubspot
tarteaucitron.services.hubspot = {
"key": "hubspot",