From 3bfcf3dace547da570ba89b12dae6db073700556 Mon Sep 17 00:00:00 2001 From: Michal Remis Date: Thu, 17 Oct 2019 20:07:29 +0200 Subject: [PATCH] added quotes when assigning url('') Added quotes because without them some images (e.g. with parenthesis in name) arent loaded properly --- lazyload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lazyload.js b/lazyload.js index 6b76a3c0..c2ac3371 100644 --- a/lazyload.js +++ b/lazyload.js @@ -118,7 +118,7 @@ entry.target.srcset = srcset; } } else { - entry.target.style.backgroundImage = "url(" + src + ")"; + entry.target.style.backgroundImage = "url('" + src + "')"; } } });