From d30f3e453c7d9617181851915fc56441881d06e9 Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 31 Jul 2014 18:21:06 +0200 Subject: [PATCH] Fixed small error in the doc and example --- README.md | 2 +- test.html | 56 +++++++++++++++++++++++++++---------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index f6e2fff..17e9346 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ function adBlockDetected() { // Recommended audit because AdBlock lock the file 'fuckadblock.js' // If the file is not called, the variable does not exist 'fuckAdBlock' // This means that AdBlock is present -if(fuckAdBlock === undefined) { +if(typeof fuckAdBlock === 'undefined') { adBlockDetected(); } else { fuckAdBlock.onDetected(adBlockDetected); diff --git a/test.html b/test.html index ecfda5f..0b34ab4 100644 --- a/test.html +++ b/test.html @@ -27,33 +27,6 @@ border-radius: 4px; } - - -
@@ -96,7 +69,7 @@

Code exemple

// Recommended audit because AdBlock lock the file 'fuckadblock.js' // If the file is not called, the variable does not exist 'fuckAdBlock' // This means that AdBlock is present -if(fuckAdBlock === undefined) { +if(typeof fuckAdBlock === 'undefined') { adBlockDetected(); } else { fuckAdBlock.onDetected(adBlockDetected); @@ -168,5 +141,32 @@

Method available

+ + + \ No newline at end of file