Module for check AdBlockPlus
Example: You can see example in ./docs/ (https://seopult-oss.github.io/adBlockChecker/)
Setup:
Install with npm
npm install seopult-ad-block-checker --save
Install with bower
bower install seopult-ad-block-checker --save
Usage:
add dependency
angular.module('testApp',['adBlockModule'])
inject service
controller: ['adBlockChecker', testController]
declare instance in controller
var vm = this;
vm.adBlockChecker = adBlockChecker;
after call
vm.adBlockChecker.check(delay);
if delay > 0 - check will run function check() each delay ms.
adBlock status will be in isAdblockEnabled property
vm.adBlockChecker.isAdblockEnabled