Last active
March 20, 2022 10:56
-
-
Save ichii731/f216f967de850c43e4eec8ba7c463c41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i block-adblock-js | |
# or | |
yarn add block-adblock-js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AdDetect from "block-adblock-js"; | |
if (AdDetect.check()) { | |
// with adblock enabled | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment