diff --git a/templates/index.html b/templates/index.html index c7b44f7..0b50ab3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -948,8 +948,11 @@ const panel = document.getElementById('insights-panel'); if(!panel) return; + // Injeta a senha web nas URLs das imagens para autenticação inline + const mdWithAuth = markdown.replace(/\/api\/host_file\?path=/g, '/api/host_file?pwd=' + encodeURIComponent(webPassword) + '&path='); + // Renderiza o Markdown para HTML usando marked.js - panel.innerHTML = `
${marked.parse(markdown)}
`; + panel.innerHTML = `
${marked.parse(mdWithAuth)}
`; } function handleKeyPress(e) {