Browse Source

Make plausible detection actually robust

Alessandro Pignotti 3 months ago
parent
commit
2e61f226b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/plausible.js

+ 1 - 1
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)
 }