vue-adblock-detect

Detect adblock in vue.js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-adblock-detect
420.0.24 years ago4 years agoMinified + gzip package size for vue-adblock-detect in KB

Readme

Simple ad blocker detection mixin for vue.js

<script>
import VueAdBlockDetect from 'vue-adblock-detect';
export default{
  mixins: [VueAdBlockDetect],
  beforeMount(){
    this.detectAdBlock().then((response)=>{
        if(response){
          //ad blocker detected
        }else{
          //no ad blocker detected
        }
      })
  }
}
</script>