We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6d059 commit b8bce5aCopy full SHA for b8bce5a
1 file changed
lms/templates/static_pdfbook.html
@@ -35,7 +35,7 @@
35
<iframe
36
title="${current_chapter.get('title')}"
37
id="viewer-frame"
38
- src="${request.path | n}?viewer=true${viewer_params | n}"
+ src="${request.path}?viewer=true${viewer_params}"
39
width="856" height="1108" frameborder="0" tabindex="-1" seamless></iframe>
40
</div>
41
@@ -86,7 +86,7 @@
86
87
// Load iframe without file parameter - secure approach (first time only)
88
$('#viewer-frame').attr({
89
- 'src': '${request.path | n}?viewer=true#zoom=page-fit&disableRange=true${viewer_params | n}'
+ 'src': '${request.path | n, js_escaped_string}?viewer=true${viewer_params | n, js_escaped_string}'
90
}).focus();
91
});
92
</script>
0 commit comments