Skip to content

Commit

Permalink
rename isAllowedApp to isAllowed
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Jul 9, 2024
1 parent 3076b32 commit 3d507f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/links/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ export default {
// Filter empty.
rels = rels.filter(i => i);

var isAllowedApp = whitelistRecord.isAllowed('html-meta.iframely') // New check.
var isAllowed = whitelistRecord.isAllowed('html-meta.iframely') // New check.
|| whitelistRecord.isAllowed('iframely.app'); // Old check

// If no additional rels specified, try add 'app'.
if (!rels.some(rel => CONFIG.REL_GROUPS && CONFIG.REL_GROUPS.includes(rel))) {
if (isAllowedApp
if (isAllowed
&& /iframely/i.test(key)
|| (appname && key.indexOf(appname) === 0)) {
// Allow <link rel="iframely" ....
Expand Down Expand Up @@ -127,7 +127,7 @@ export default {
var tags = whitelistRecord.getQATags(rels);
var isAllowedByRels = tags.indexOf('allow') > -1;

if (!isAllowedApp && !isAllowedByRels) {
if (!isAllowed && !isAllowedByRels) {
return [];
}

Expand Down

0 comments on commit 3d507f4

Please sign in to comment.