title: window.print() opens two print dialogs on FF and Chrome
body: <p>Yes, as the name suggests, I am getting two print dialogs on Chrome latest and FF latest. </p>
  
  <p>The code I'm using is:</p>
  
  <pre><code>var $printButton = $('#print_button');
  
  if ($printButton) {
      $printButton.on('click', function () {
          window.print();
      })
  }
  </code></pre>
  
  <p>The second dialog only opens when I have actioned the first dialog (print or cancel), if that helps.</p>
  
  <p>EDIT:</p>
  
  <p>After narrowing it down to an issue with my callback, I put a <code>console.log('hello');</code> in the script and found that it was calling twice on refresh.</p>
  
  <p>My script file was being included twice somewhere on the page. Thank you legacy code :)</p>
  
  <p>Thanks for the advice everyone.</p>