vue-adblock-detect

0.0.2 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i vue-adblock-detect

Weekly Downloads

72

Version

0.0.2

License

ISC

Unpacked Size

1.56 kB

Total Files

4

Last publish

Collaborators

  • soikat