From 8dbdaf84d9c084390f8a6b130e79caeab536b8af Mon Sep 17 00:00:00 2001 From: prototypa Date: Fri, 11 Aug 2023 09:34:04 -0400 Subject: [PATCH] Fix whenExternalScripts for Google Analytics --- astro.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 18ab365..5721218 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -17,7 +17,7 @@ import { SITE_CONFIG, ANALYTICS_CONFIG } from './src/utils/config.ts'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const whenExternalScripts = (items = []) => - ANALYTICS_CONFIG.vendors.googleAnalytics.isEnabled + ANALYTICS_CONFIG.vendors.googleAnalytics.id ? Array.isArray(items) ? items.map((item) => item()) : [items()]