feat(DSFR.ie11): enable legacy mode with our own packaging system
This commit is contained in:
parent
5a18e0e03d
commit
f674f6981b
1 changed files with 7 additions and 0 deletions
|
@ -65,5 +65,12 @@ Turbo.session.drive = false;
|
||||||
// Expose globals
|
// Expose globals
|
||||||
window.DS = window.DS || DS;
|
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/matomo');
|
||||||
import('../shared/track/sentry');
|
import('../shared/track/sentry');
|
||||||
|
|
Loading…
Add table
Reference in a new issue