```
[DEL] docs(file/topic): Supprime favicon et manifest inutilisés. [FEAT] feat(file/topic): Ajoute PWA bundle et CSP pour la sécurité. ```
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import './app.scss'
|
||||
import * as Turbo from "@hotwired/turbo"
|
||||
import '@grafikart/drop-files-element'
|
||||
import {PaymentForm} from './PaymentForm'
|
||||
import {PaymentForm} from './PaymentForm.js'
|
||||
import * as Sentry from "@sentry/browser";
|
||||
|
||||
// --- CONFIGURATION ET ETAT ---
|
||||
@@ -244,10 +244,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
window.chatwootSDK.run({ websiteToken: '6uFX3g3qybyvSt3PAQUMgkm4', baseUrl: BASE_URL_WOOT });
|
||||
};
|
||||
}
|
||||
const env = document.querySelector('meta[name="env"]');
|
||||
if (env && env.getAttribute('content') === "prod" && 'serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/sw.js');
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('turbo:load', () => {
|
||||
|
||||
Reference in New Issue
Block a user