Skip to content

Commit 0f0bfa4

Browse files
committed
Remove unnecessary URL encoding when setting bg image
1 parent 6664ce6 commit 0f0bfa4

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)