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:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user