diff --git a/renderer/carbone-service.js b/renderer/carbone-service.js index 847e1dc..fdb8541 100644 --- a/renderer/carbone-service.js +++ b/renderer/carbone-service.js @@ -473,11 +473,11 @@ router.get('/master-template', async (req, res) => { } }); -// GET /api/carbone/help-docx - Download tags reference as .docx -router.get('/help-docx', (req, res) => { - const helpPath = path.join(TEMPLATES_DIR, 'HELP_TAGS_REFERENCE.docx'); +// GET /api/carbone/help-pdf - Download tags reference as .pdf +router.get('/help-pdf', (req, res) => { + const helpPath = path.join(TEMPLATES_DIR, 'HELP_TAGS_REFERENCE.pdf'); if (fs.existsSync(helpPath)) { - res.download(helpPath, 'Carbone_Tags_Reference.docx'); + res.download(helpPath, 'Carbone_Tags_Reference.pdf'); } else { res.status(404).json({ error: 'Help file not found' }); } diff --git a/static/carbone.js b/static/carbone.js index 644dfd6..f419284 100644 --- a/static/carbone.js +++ b/static/carbone.js @@ -170,7 +170,7 @@ async function viewTagsHelp() { html += ''; } html += ''; - html += '
'; + html += ''; showModal(html, 'Carbone Tags Reference'); } catch (e) { @@ -179,8 +179,8 @@ async function viewTagsHelp() { } // ============================================================ -// TAGS HELP - Download .docx +// TAGS HELP - Download .pdf // ============================================================ -function downloadHelpDocx() { - window.open(CARBONE_API + '/help-docx', '_blank'); +function downloadHelpPdf() { + window.open(CARBONE_API + '/help-pdf', '_blank'); } \ No newline at end of file diff --git a/static/index.html b/static/index.html index 386190e..ebcb80e 100644 --- a/static/index.html +++ b/static/index.html @@ -74,7 +74,7 @@ - +