mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-28 09:12:45 +00:00
Print dialog now auto opens on print page
This commit is contained in:
@@ -91,7 +91,7 @@ module.exports = function(app){
|
||||
}).join('\n');
|
||||
|
||||
var title = '<title>' + brew.title + '</title>';
|
||||
var page = '<html><head>' + title + PHBStyle + '</head><body>' + content +'</body></html>'
|
||||
var page = '<html><head>' + title + PHBStyle + '</head><body onload="window.print()">' + content +'</body></html>'
|
||||
|
||||
return res.send(page)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user