Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58231bf

Browse files
committed
Allow threshold to be zero
1 parent 00ba3d7 commit 58231bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

phantomcss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function update( options ) {
8282

8383
_hideElements = options.hideElements;
8484

85-
_mismatchTolerance = options.mismatchTolerance || _mismatchTolerance;
85+
_mismatchTolerance = isNaN(options.mismatchTolerance) ? _mismatchTolerance : options.mismatchTolerance;
8686

8787
_rebase = isNotUndefined(options.rebase) ? options.rebase : _rebase;
8888

0 commit comments

Comments
 (0)