Skip to content

Commit

Permalink
Update jquery.adaptive-backgrounds.js
Browse files Browse the repository at this point in the history
  • Loading branch information
anuprajg authored Jun 25, 2017
1 parent 0d381db commit 7382b4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/jquery.adaptive-backgrounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@
else {
$parent = $this.parent();
}
$parent = $parent.parent.parent.parent()
if($.isNumeric(opts.transparent) && opts.transparent != null && opts.transparent >= 0.01 && opts.transparent <= 0.99) {
if($.isNumeric(opts.transparent) && opts.transparent != null && opts.transparent >= 0.01 && opts.transparent <= 0.99) {
var dominantColor = data.color;
var rgbToRgba = dominantColor.replace("rgb", "rgba");
var transparentColor = rgbToRgba.replace(")", ", " + opts.transparent + ")");
Expand Down

0 comments on commit 7382b4b

Please sign in to comment.