Merge branch '2026.4-rc' of github.com:cryptpad/cryptpad into 2026.4-rc

This commit is contained in:
yflory 2026-05-12 11:45:40 +02:00
commit 5d9147408c

View File

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