Skip to content

Commit e002524

Browse files
committed
Merge pull request #1 from mrclay/patch-1
Remove unnecessary URL encoding when setting bg image
2 parents 6664ce6 + 0f0bfa4 commit e002524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parallax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
100100
if (this.iosFix && !this.$element.is('img')) {
101101
this.$element.css({
102-
backgroundImage: 'url(' + encodeURIComponent(this.imageSrc) + ')',
102+
backgroundImage: 'url(' + this.imageSrc + ')',
103103
backgroundSize: 'cover',
104104
backgroundPosition: this.position
105105
});

0 commit comments

Comments
 (0)