Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

swImageGallery webp images not loaded #132

@manuel-duchscherer-at-reppa

Description

PHP Version

8.2

Shopware Version

5.7

Actual behaviour

Resources/frontend/js/webp-support.js
sets the css class has--webp if webp is supported.

The swImageGallery override only loads webp if webp is not supported (negated behavior).
Resources/frontend/js/jquery.image-gallery.js.

Expected behaviour

Resources/frontend/js/jquery.image-gallery.js

The conditions

if (!document.documentElement.classList.contains('has--webp')) {

work as expected if they are not negated.

if (document.documentElement.classList.contains('has--webp')) {

Steps to Reproduce?

it seems to be a general problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions