Skip to content

Commit

Permalink
fix noopener
Browse files Browse the repository at this point in the history
  • Loading branch information
Lex-Ai committed Jun 14, 2020
1 parent 677583d commit 713ae5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/modules/TopRightMenu.jsx
Expand Up @@ -137,7 +137,7 @@ function TopRightMenu({account, savings_withdraws, price_per_golos, globalprops,
}
additional_menu.push(
{ link: '/market', icon: 'voters', value: tt('userwallet_jsx.market') },
{ link: '/~witnesses', icon: 'new/like', value: tt("navigation.witnesses") },
{ link: '/~witnesses', icon: 'new/like', value: tt("navigation.witnesses"), target: 'blank' },
{ link: '/workers', icon: 'editor/plus', value: tt("navigation.workers") },
{ link: 'https://explorer.golos.id/', icon: 'new/search', value: tt("navigation.explorer"), target: 'blank' },
{ link: '/exchanges', icon: 'editor/coin', value: tt("navigation.buy_sell") },
Expand Down
2 changes: 1 addition & 1 deletion app/utils/SanitizeConfig.js
Expand Up @@ -293,7 +293,7 @@ export default ({
const attrs = { href };

// If it's not a (relative or absolute) golos URL...
if (!href.match(/^(\/(?!\/)|https:\/\/(golos.id|golos.club))/)) {
if (!href.match(/^(\/(?!\/)|https:\/\/(golos.id|golos.in|golos.today))/)) {
attrs.rel = highQualityPost ? 'noopener' : 'nofollow noopener';
}

Expand Down

0 comments on commit 713ae5a

Please sign in to comment.