Make plausible detection actually robust
This commit is contained in:
parent
44a91638d2
commit
2e61f226b0
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user