mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
fix(pdf): enable printing again
- Regression introduced by sandboxing the pdfjs iframe
This commit is contained in:
parent
a27ff8e62f
commit
acce881db2
@ -120,7 +120,7 @@ var factory = function (Util) {
|
||||
var iframe = document.createElement('iframe');
|
||||
if (cfg.pdf.viewer) { // PDFJS
|
||||
var viewerUrl = cfg.pdf.viewer + '?file=' + url;
|
||||
iframe.setAttribute('sandbox', 'allow-scripts allow-downloads allow-same-origin');
|
||||
iframe.setAttribute('sandbox', 'allow-scripts allow-downloads allow-same-origin allow-modals');
|
||||
iframe.src = viewerUrl + '#' + window.encodeURIComponent(metadata.name);
|
||||
iframe.onload = function () {
|
||||
if (!metadata.name) { return; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user