Skip to content

Commit f218e61

Browse files
committed
fix title
1 parent c01b1c4 commit f218e61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/domains/documentcloud.org.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
try {
3939
var iframe = oembed.getIframe();
4040
// Embed expects title=1 to show, title=0 to hide (default is 1)
41-
var href = iframe.replaceQuerystring({ title: hideTitle ? 1 : 0 });
41+
var href = hideTitle ? iframe.replaceQuerystring({ title: 0}) : iframe.src;
4242

4343
if (page && page !== '1') {
4444
if (href) {

0 commit comments

Comments
 (0)