Skip to content

Commit 5053290

Browse files
committed
feat: add vue-plausible detection
1 parent b44f4cb commit 5053290

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

detectors/plugins.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,16 @@
113113
"detectors": {
114114
"js": "window.VeeValidate || Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__ && ('$_veeObserver' in el.__vue__ || (el.__vue__.$validator && 'attach' in el.__vue__.$validator)) || el.__vueParentComponent && el.__vueParentComponent.provides && Reflect.ownKeys(el.__vueParentComponent.provides).some(i => /vee-validate/i.test(i.description)) )))"
115115
}
116+
},
117+
"vue-plausible": {
118+
"metas": {
119+
"slug": "vue-plausible",
120+
"name": "vue-plausible",
121+
"imgPath": "/plugins/vue-plausible.png",
122+
"url": "https://github.com/moritzsternemann/vue-plausible"
123+
},
124+
"detectors": {
125+
"js": "window.Vue?.$plausible || window.$nuxt?.$plausible || Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__?.$plausible)))"
126+
}
116127
}
117128
}

icons/plugins/vue-plausible.png

1.53 KB
Loading

0 commit comments

Comments
 (0)