brainloper-ui 20.0.11 → 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.
@@ -1362,7 +1362,12 @@ class TemplateOtComponent {
1362
1362
  return doc;
1363
1363
  })
1364
1364
  .then((docResult) => {
1365
- docResult.output('dataurlnewwindow', { filename: 'reporte.pdf' });
1365
+ const blob = docResult.output('blob');
1366
+ const blobUrl = URL.createObjectURL(blob);
1367
+ const newWindow = window.open(blobUrl, '_blank');
1368
+ if (newWindow) {
1369
+ newWindow.onload = () => URL.revokeObjectURL(blobUrl);
1370
+ }
1366
1371
  this.dialog.closeAll();
1367
1372
  this.message.closeLoading();
1368
1373
  });
@@ -1783,8 +1788,12 @@ class TemplateFuelComponent {
1783
1788
  return doc;
1784
1789
  })
1785
1790
  .then((docResult) => {
1786
- //docResult.save(`${new Date().toISOString()}_reporte.pdf`);
1787
- 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
+ }
1788
1797
  this.dialog.closeAll();
1789
1798
  this.message.closeLoading();
1790
1799
  });