Skip to content

Commit

Permalink
iframely-link: finish allowing empty type attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Apr 18, 2023
1 parent 31df0f0 commit c38710d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/links/iframely-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ export default {

for (const [key, value] of Object.entries(meta)) {
if (key.indexOf(appname) === 0 || !ignoreIframely && key.indexOf(CONFIG.R.iframely) === 0) {
links = links.concat(utils.parseMetaLinks(key, value, whitelistRecord, ignoreIframely && appname));
links = links.concat(
utils.parseMetaLinks(
key,
typeof(value) === 'string' ? {href: value} : value, // If link has no `media` and no `type` attributes, HTMLMetaHandler assigns the value=href;
whitelistRecord,
ignoreIframely && appname
)
);
}
}

Expand Down

0 comments on commit c38710d

Please sign in to comment.