feat(DSFR.ie11): enable legacy mode with our own packaging system

This commit is contained in:
Martin 2022-09-07 15:50:57 +02:00 committed by mfo
parent 5a18e0e03d
commit f674f6981b

View file

@ -65,5 +65,12 @@ Turbo.session.drive = false;
// Expose globals
window.DS = window.DS || DS;
// enable legacy mode of DSFR when vite is not detectde as modern browser
window.addEventListener('load', function () {
if (!window.__vite_is_modern_browser) {
window.dsfr.internals.legacy.setLegacy();
}
});
import('../shared/track/matomo');
import('../shared/track/sentry');