Make plausible detection actually robust

This commit is contained in:
Alessandro Pignotti 2025-03-19 10:34:06 +01:00
parent 44a91638d2
commit 2e61f226b0

View File

@ -1,6 +1,6 @@
// Some ad-blockers block the plausible script from loading. Check if `plausible` // Some ad-blockers block the plausible script from loading. Check if `plausible`
// is defined before calling it. // is defined before calling it.
export function tryPlausible(msg) { export function tryPlausible(msg) {
if (plausible) if (self.plausible)
plausible(msg) plausible(msg)
} }