mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge branch '2026.4-rc' of github.com:cryptpad/cryptpad into 2026.4-rc
This commit is contained in:
commit
5d9147408c
@ -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