瀏覽代碼

Make plausible detection actually robust

Alessandro Pignotti 3 月之前
父節點
當前提交
2e61f226b0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 }