From 023d108abcac96b32f8966854183115b7b8de9e1 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Wed, 9 Sep 2020 00:18:18 -0400 Subject: [PATCH] Enable PDF print support on Edge browser --- src/js/init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/init.js b/src/js/init.js index cbd527e..3715883 100644 --- a/src/js/init.js +++ b/src/js/init.js @@ -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()