From 2e61f226b040ae0f88c30d8a8d654997efb580a5 Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Wed, 19 Mar 2025 10:34:06 +0100 Subject: [PATCH] Make plausible detection actually robust --- src/lib/plausible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/plausible.js b/src/lib/plausible.js index bbdd724..baa884a 100644 --- a/src/lib/plausible.js +++ b/src/lib/plausible.js @@ -1,6 +1,6 @@ // Some ad-blockers block the plausible script from loading. Check if `plausible` // is defined before calling it. export function tryPlausible(msg) { - if (plausible) + if (self.plausible) plausible(msg) }