Skip to content

Commit b2f6c38

Browse files
committed
Merge branch 'v3.x'
2 parents fbf00b5 + 8115d8a commit b2f6c38

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BlockAdBlock (v3.2.0)
1+
BlockAdBlock (v3.2.1)
22
===========
33

44
([FuckAdBlock](https://github.com/sitexw/FuckAdBlock) same project but with a more convenient name)

blockadblock.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* BlockAdBlock 3.2.0
2+
* BlockAdBlock 3.2.1
33
* Copyright (c) 2015 Valentin Allaire <[email protected]>
44
* Released under the MIT license
55
* https://github.com/sitexw/BlockAdBlock
@@ -17,7 +17,7 @@
1717
debug: false
1818
};
1919
this._var = {
20-
version: '3.2.0',
20+
version: '3.2.1',
2121
bait: null,
2222
checking: false,
2323
loop: null,
@@ -155,8 +155,7 @@
155155
}
156156
if(window.getComputedStyle !== undefined) {
157157
var baitTemp = window.getComputedStyle(this._var.bait, null);
158-
if(baitTemp.getPropertyValue('display') == 'none'
159-
|| baitTemp.getPropertyValue('visibility') == 'hidden') {
158+
if(baitTemp && (baitTemp.getPropertyValue('display') == 'none' || baitTemp.getPropertyValue('visibility') == 'hidden')) {
160159
detected = true;
161160
}
162161
}

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blockadblock",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "Detects ad blockers (AdBlock, ...)",
55
"authors": [{
66
"name" : "Valentin Allaire",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blockadblock",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "Detects ad blockers (AdBlock, ...)",
55
"author": {
66
"name" : "Valentin Allaire",

test.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<title>BlockAdBlock 3.2.0</title>
4+
<title>BlockAdBlock 3.2.1</title>
55

66
<meta charset="utf-8">
77
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -40,7 +40,7 @@
4040
<div class="container">
4141
<header class="row">
4242
<div class="col-sm-6">
43-
<h1>BlockAdBlock <small>3.2.0</small></h1>
43+
<h1>BlockAdBlock <small>3.2.1</small></h1>
4444
</div>
4545
<div class="col-sm-6 text-right">
4646
<h4>

0 commit comments

Comments
 (0)