Skip to content

Commit bed3cb9

Browse files
authored
Merge pull request #6 from chillyistkult/patch-1
Detect AdBlock Plus extension
2 parents fd5c182 + 58420df commit bed3cb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adblock-detect-react",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Provides utilities to check if ad block is enabled on a page via both a React hook and a wrapper component.",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",

src/hooks/useDetectAdBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const useDetectAdBlock = () => {
77
const adToDetect = document.createElement("div");
88
adToDetect.setAttribute(
99
"class",
10-
"pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links"
10+
"googlead pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links"
1111
);
1212
adToDetect.setAttribute(
1313
"style",

0 commit comments

Comments
 (0)