Skip to content

Commit 104c013

Browse files
committed
https://github.com/intbot/ng2-pdfjs-viewer/issues/289
1 parent 3d6bb30 commit 104c013

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-pdfjs-viewer",
3-
"version": "25.0.15",
3+
"version": "25.0.16",
44
"description": "The most comprehensive Angular PDF viewer powered by Mozilla PDF.js. 7M+ downloads, mobile-first, production-ready with complete rewrite in v25.x",
55
"author": {
66
"name": "Aneesh Goapalakrishnan",

lib/src/ng2-pdfjs-viewer.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ import { ChangeOriginTracker } from "./utils/ChangeOriginTracker";
157157
<iframe
158158
[title]="iframeTitle || 'PDF document viewer'"
159159
[hidden]="externalWindow || (!externalWindow && !pdfSrc)"
160-
sandbox="allow-forms allow-scripts allow-same-origin allow-modals"
160+
sandbox="allow-forms allow-scripts allow-same-origin allow-modals allow-downloads"
161161
[class]="getIframeClasses()"
162162
#iframe
163163
width="100%"
164164
height="100%"
165165
></iframe>
166-
166+
167167
<div
168168
class="ng2-pdfjs-loading-overlay"
169169
*ngIf="showSpinner && isLoading && !externalWindow"
@@ -287,6 +287,7 @@ export class PdfJsViewerComponent
287287

288288
// #region Auto-Action Properties
289289
@Input() public downloadOnLoad: boolean = false;
290+
@Input() public enableSandbox: boolean = false;
290291
@Input() public printOnLoad: boolean = false;
291292
@Input() public rotateCW: boolean = false;
292293
@Input() public rotateCCW: boolean = false;

0 commit comments

Comments
 (0)