diff --git a/public/js/common.js b/public/js/common.js index da367da..df7b4c2 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -788,3 +788,14 @@ function switchLang(lang) { `; document.head.appendChild(style); })(); + +// ── Auto-inject feedback.js su tutte le pagine autenticate ────────────────── +(function () { + const excluded = ['login.html', 'register.html', 'onboarding.html', 'index.html', '']; + const page = window.location.pathname.split('/').pop(); + if (excluded.includes(page)) return; + if (document.querySelector('script[src*="feedback.js"]')) return; + const s = document.createElement('script'); + s.src = 'js/feedback.js'; + document.body.appendChild(s); +})();