Viewport-detection.helper.js : getCurrentViewport() returns "NONE" on page load

Das Plugin vendor/shopware/storefront/Resources/app/storefront/src/plugin/collapse/collapse-footer-columns.plugin.js hat Probleme beim Collapse Einstellung, weil _isInAllowedViewports on page load returns „false“ on small viewports, und dann sind die Akkordeon/Collapse nicht durch JS responsive.

Das Problem kommt eigentlich von vendor/shopware/storefront/Resources/app/storefront/src/helper/viewport-detection.helper.js, wo getCurrentViewport() returns „NONE“ anstatt „XS“, „MD“, etc. Diese Funktion liest die werte die in vendor/shopware/storefront/Resources/app/storefront/src/scss/base/_base.scss auf dem html::before definiert sind.

Sobald man nach dem PageLoad die Seite skaliert, dann funktioniert wieder alles wie normal. Nur nach dem Pageload sind diese ::before werte nicht anerkennt.

Hat jemand das Problem lösen können? Vielen Dank!
David

You are missing the content css property on the :before pseudo element of the html.