Enable donates

This commit is contained in:
Roman Tsisyk 2022-10-10 13:11:47 +03:00 committed by Alexander Borsuk
parent 0c45b20401
commit e7cb18f14b

View file

@ -123,11 +123,7 @@ export async function handleRequest(request: Request) {
donatesEnabled = true;
} else if (
appVersion.flavor == 'google' &&
!(request.cf?.asOrganization || '').toLowerCase().includes('google') &&
(request.cf?.country == 'DE' ||
request.cf?.country == 'TR' ||
request.cf?.country == 'CY' ||
request.cf?.country == 'CH')
!(request.cf?.asOrganization || '').toLowerCase().includes('google')
) {
donatesEnabled = true;
}