diff --git a/jQuery.printElement/jquery.printElement.js b/jQuery.printElement/jquery.printElement.js index 96f8a3e..5b63c3d 100644 --- a/jQuery.printElement/jquery.printElement.js +++ b/jQuery.printElement/jquery.printElement.js @@ -28,7 +28,7 @@ //iframe mode is not supported for opera and chrome 3.0 (it prints the entire page). //http://www.google.com/support/forum/p/Webmasters/thread?tid=2cb0f08dce8821c3&hl=en if (mainOptions["printMode"] == 'iframe') { - if ($.browser.opera || (/chrome/.test(navigator.userAgent.toLowerCase()))) + if ((/opera/.test(navigator.userAgent.toLowerCase())) || (/chrome/.test(navigator.userAgent.toLowerCase()))) mainOptions["printMode"] = 'popup'; } //Remove previously printed iframe if exists @@ -173,7 +173,7 @@ html.push(''); html.push(''); html.push('
' + elementHtml + '
'); - html.push(''); + html.push(''); html.push(''); return html.join('');