brainloper-ui 20.0.11 → 20.0.12

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
  });