0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 17:22:42 +00:00

Rename printPage function to printCurrentBrew()

Avoid confusion with other "page" components.
This commit is contained in:
Trevor Buckner
2024-05-28 16:11:18 -04:00
parent 01d60c4520
commit 8a55658bd7
6 changed files with 12 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ const splitTextStyleAndMetadata = (brew)=>{
}
};
const printPage = ()=>{
const printCurrentBrew = ()=>{
if(window.typeof !== 'undefined') {
window.frames['BrewRenderer'].contentWindow.print();
//Force DOM reflow; Print dialog causes a repaint, and @media print CSS somehow makes out-of-view pages disappear
@@ -30,5 +30,5 @@ const printPage = ()=>{
module.exports = {
splitTextStyleAndMetadata,
printPage
printCurrentBrew
};