Skip to content

Commit

Permalink
propagate title param to iframe src
Browse files Browse the repository at this point in the history
  • Loading branch information
garmoncheg committed Nov 5, 2024
1 parent a20c1b0 commit c9040b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/domains/documentcloud.org.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export default {
var iframe = oembed.getIframe();
var href = iframe.src;

var uri = new URL(href);
uri.searchParams.append("title", title ? '1': '0');
href = uri.toString();

if (page && page !== '1') {
if (href) {
href += '#document/p' + page;
Expand Down

0 comments on commit c9040b2

Please sign in to comment.