1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Allow Google fonts for Google services by default and permanently (#1560)

This commit is contained in:
nobody
2023-10-13 08:55:30 +02:00
parent e5e4482853
commit 5ee66f2a99
5 changed files with 267 additions and 4 deletions

View File

@@ -294,3 +294,7 @@ helpers.compareVersion = function (v1, v2) {
}
return v1.length === v2.length ? true : v1.length < v2.length ? false : true;
};
helpers.isGoogleDomain = function (initiatorDomain) {
return GoogleDomains[initiatorDomain.replace('www.', '')] || false;
};