mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 15:22:41 +00:00
Updated changelog
This commit is contained in:
@@ -90,8 +90,11 @@ module.exports = function(app){
|
||||
return '<div class="phb print">' + Markdown(pageText) + '</div>';
|
||||
}).join('\n');
|
||||
|
||||
var dialog = '';
|
||||
if(req.query && req.query.dialog) dialog = 'onload="window.print()"';
|
||||
|
||||
var title = '<title>' + brew.title + '</title>';
|
||||
var page = '<html><head>' + title + PHBStyle + '</head><body onload="window.print()">' + content +'</body></html>'
|
||||
var page = `<html><head>${title} ${PHBStyle}</head><body ${dialog}>${content}</body></html>`
|
||||
|
||||
return res.send(page)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user