Fix invalid urls in webcam lazyloading
This commit is contained in:
@@ -19,7 +19,7 @@ class LazyLoadImageViewHelper extends ImageViewHelper
|
|||||||
|
|
||||||
$src = $this->tag->getAttribute('src');
|
$src = $this->tag->getAttribute('src');
|
||||||
$this->tag->removeAttribute('src');
|
$this->tag->removeAttribute('src');
|
||||||
$this->tag->addAttribute('data', ['src' => $src]);
|
$this->tag->addAttribute('data', ['src' => $src], false);
|
||||||
|
|
||||||
if (isset($this->arguments['loaderimg'])) {
|
if (isset($this->arguments['loaderimg'])) {
|
||||||
$loaderImage = $this->imageService->getImage($this->arguments['loaderimg'], null, false);
|
$loaderImage = $this->imageService->getImage($this->arguments['loaderimg'], null, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user