diff --git a/shared/helpers.js b/shared/helpers.js index 3020890c5..2988df71c 100644 --- a/shared/helpers.js +++ b/shared/helpers.js @@ -23,7 +23,7 @@ const printCurrentBrew = ()=>{ //Force DOM reflow; Print dialog causes a repaint, and @media print CSS somehow makes out-of-view pages disappear const node = window.frames['BrewRenderer'].contentDocument.getElementsByClassName('brewRenderer').item(0); node.style.display='none'; - node.getElementsByClassName('toolBar').item(0).style.display='none'; + window.frames['BrewRenderer'].contentDocument.getElementsByClassName('toolBar').item(0).style.display='none'; node.offsetHeight; // accessing this is enough to trigger a reflow node.style.display=''; }