brainloper-ui 20.0.12 → 20.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1788,8 +1788,12 @@ class TemplateFuelComponent {
1788
1788
  return doc;
1789
1789
  })
1790
1790
  .then((docResult) => {
1791
- //docResult.save(`${new Date().toISOString()}_reporte.pdf`);
1792
- docResult.output('dataurlnewwindow', { filename: 'fuekreporte.pdf' });
1791
+ const blob = docResult.output('blob');
1792
+ const blobUrl = URL.createObjectURL(blob);
1793
+ const newWindow = window.open(blobUrl, '_blank');
1794
+ if (newWindow) {
1795
+ newWindow.onload = () => URL.revokeObjectURL(blobUrl);
1796
+ }
1793
1797
  this.dialog.closeAll();
1794
1798
  this.message.closeLoading();
1795
1799
  });