Closed aluppol closed 2 years ago
Any chance this can be merged? We would really benefit from this. Thank you.
Yes please to this fix.
Any update on this PR?
Running into same problem here...
This is a safari issue its not a print-js issue
I have forked this and implemented the PR and it works great. Can we get this merged with a new minor release, please.
I just tested it and Google Chrome on Windows passes the isSafari
check - so this would also affect Chrome.
// At least Safari 3+: "[object HTMLElementConstructor]"
isSafari: () => {
return Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 ||
navigator.userAgent.toLowerCase().indexOf('safari') !== -1
}
I confirm that this fixes our problem with Safari printing blank page. We are now are able to print a PDF.
@antoniotorres any help here ?
This doesn't fix it the problem.
Reproduce: MacOS: 12.2.1 Safari: 15.3 (17612.4.9.1.8) Type: Print from URL
https://github.com/crabbly/Print.js/issues/528#issuecomment-832661451