fix: escape backticks in snippetBlock to fix 503 syntax error
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 2s
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 2s
This commit is contained in:
parent
1afd2a0e4f
commit
e5c93e71d3
@ -435,7 +435,7 @@ app.get(['/widget.js', BASE + '/widget.js'], (req, res) => {
|
||||
var snippetBlock = '';
|
||||
Object.keys(pickedElements).forEach(function(num) {
|
||||
var pe = pickedElements[num];
|
||||
snippetBlock += '\\n\\n**[element ' + num + ']** `' + pe.selector + '`\\n\`\`\`html\\n' + pe.snippet + '\\n\`\`\`';
|
||||
snippetBlock += '\\n\\n**[element ' + num + ']** \`' + pe.selector + '\`\\n\`\`\`html\\n' + pe.snippet + '\\n\`\`\`';
|
||||
});
|
||||
var fullBody = body + snippetBlock;
|
||||
fetch(SELF + '/api/feedback', {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user