1.0.0 • Published 3 years ago

blocker-detector-ts v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

Description

Detect and display alert when ad block is enabled on a page (typescript implementation)

Install

npm install blocker-detector
yarn add blocker-detector

Usage

  • You can get blocking status
import { BlockerDetector } from 'blocker-detector';

const App = () => {
  let blocked = BlockerDetector();

  return (
    <>
      {blocked &&
        <span>Display when ad block has been detected</span>
      }
    </>
  );
};
  • You can simple display alert
import { BlockerAlert } from 'blocker-detector';

const App = () => (
  <BlockerAlert>
    <span>Display when ad block has been detected</span>
  </BlockerAlert>
);
1.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.11

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago