Skip to content

Commit

Permalink
Enable PDF print support on Edge browser
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed Sep 9, 2020
1 parent ab4e31f commit 023d108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ export default {
switch (params.type) {
case 'pdf':
// Check browser support for pdf and if not supported we will just open the pdf file instead
if (Browser.isFirefox() || Browser.isEdge() || Browser.isIE()) {
if (Browser.isFirefox() || Browser.isIE()) {
try {
console.info('PrintJS currently doesn\'t support PDF printing in Firefox, Internet Explorer and Edge.')
console.info('PrintJS currently doesn\'t support PDF printing in Firefox and Internet Explorer.')
if (params.onBrowserIncompatible() === true) {
const win = window.open(params.fallbackPrintable, '_blank')
win.focus()
Expand Down

0 comments on commit 023d108

Please sign in to comment.