🐛 fix(error): Affiche l'exception sur la page d'erreur 500
This commit is contained in:
@@ -104,3 +104,14 @@ export class UtmEvent extends HTMLElement {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Chargement automatique d'Umami si consentement
|
||||
if (sessionStorage.getItem('ldk_cookie') === 'accepted') {
|
||||
if (!document.querySelector('script[src="https://tools-security.esy-web.dev/script.js"]')) {
|
||||
const script = document.createElement('script');
|
||||
script.defer = true;
|
||||
script.src = "https://tools-security.esy-web.dev/script.js";
|
||||
script.setAttribute('data-website-id', "38d713c3-3923-4791-875a-dfe5f45372c3");
|
||||
document.head.appendChild(script);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user