diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 57f13bb5ca..2e93d56bb0 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -179,7 +179,9 @@ window.ProcessMaker = { missingTranslation(value) { if (this.missingTranslations.has(value)) { return; } this.missingTranslations.add(value); - console.warn("Missing Translation:", value); + if (!isProd) { + console.warn("Missing Translation:", value); + } }, RequestChannel, @@ -231,6 +233,7 @@ window.ProcessMaker.apiClient.defaults.headers.common["X-Requested-With"] = "XML */ const token = document.head.querySelector("meta[name=\"csrf-token\"]"); +const isProd = document.head.querySelector("meta[name=\"is-prod\"]")?.content === "true"; if (token) { window.ProcessMaker.apiClient.defaults.headers.common["X-CSRF-TOKEN"] = token.content; diff --git a/resources/views/layouts/ai-qr-mobile.blade.php b/resources/views/layouts/ai-qr-mobile.blade.php index 2ba43445b4..67a876a93a 100644 --- a/resources/views/layouts/ai-qr-mobile.blade.php +++ b/resources/views/layouts/ai-qr-mobile.blade.php @@ -7,6 +7,7 @@ + diff --git a/resources/views/layouts/layout.blade.php b/resources/views/layouts/layout.blade.php index dc70dd2c22..2fd4356d4c 100644 --- a/resources/views/layouts/layout.blade.php +++ b/resources/views/layouts/layout.blade.php @@ -9,6 +9,7 @@ worker-src 'self' blob:;"> + diff --git a/resources/views/layouts/minimal.blade.php b/resources/views/layouts/minimal.blade.php index 6197f89405..290d841c6c 100644 --- a/resources/views/layouts/minimal.blade.php +++ b/resources/views/layouts/minimal.blade.php @@ -6,6 +6,7 @@ +