Skip to content

Commit df96336

Browse files
committed
added rel to noopner norefrence to the all targets
1 parent 224c6e2 commit df96336

7 files changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ Support for this project has come from [Processing Foundation](https://processin
4949
Hosting and technical support has come from:
5050
<br />
5151
<br />
52-
<a href="https://releasehub.com/" target="_blank"><img width="100" src="https://assets.website-files.com/603dd147c5b0a480611bd348/603dd147c5b0a469bc1bd451_logo--dark.svg" /></a>
52+
<a href="https://releasehub.com/" target="_blank" rel="noopener noreferrer"><img width="100" src="https://assets.website-files.com/603dd147c5b0a480611bd348/603dd147c5b0a469bc1bd451_logo--dark.svg" /></a>
5353
<br />
54-
<a href="https://www.browserstack.com/" target="_blank"><img width="100" src="https://user-images.githubusercontent.com/6063380/46976166-ab280a80-d096-11e8-983b-18dd38c8cc9b.png" /></a>
54+
<a href="https://www.browserstack.com/" target="_blank" rel="noopener noreferrer"><img width="100" src="https://user-images.githubusercontent.com/6063380/46976166-ab280a80-d096-11e8-983b-18dd38c8cc9b.png" /></a>

client/modules/About/pages/About.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const About = () => {
133133
<a
134134
href="https://github.com/processing/p5.js-web-editor/releases"
135135
target="_blank"
136-
rel="noreferrer"
136+
rel="noopener noreferrer"
137137
>
138138
{t('About.WebEditor')}: <span>v{packageData?.version}</span>
139139
</a>
@@ -142,7 +142,7 @@ const About = () => {
142142
<a
143143
href="https://github.com/processing/p5.js/releases"
144144
target="_blank"
145-
rel="noreferrer"
145+
rel="noopener noreferrer"
146146
>
147147
p5.js: <span>v{p5version}</span>
148148
</a>

client/modules/IDE/components/AssetListRow.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const AssetMenu = ({ item: asset }) => {
2222
return (
2323
<TableDropdown aria-label={t('AssetList.ToggleOpenCloseARIA')}>
2424
<MenuItem onClick={handleAssetDelete}>{t('AssetList.Delete')}</MenuItem>
25-
<MenuItem href={asset.url} target="_blank">
25+
<MenuItem href={asset.url} target="_blank" rel="noopener noreferrer">
2626
{t('AssetList.OpenNewTab')}
2727
</MenuItem>
2828
</TableDropdown>

client/modules/IDE/components/Preferences/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default function Preferences() {
122122
const markdownComponents = useMemo(() => {
123123
// eslint-disable-next-line react/no-unstable-nested-components
124124
const ExternalLink = ({ children, ...props }) => (
125-
<a {...props} target="_blank">
125+
<a {...props} target="_blank" rel="noopener noreferrer">
126126
{children}
127127
</a>
128128
);
@@ -622,7 +622,7 @@ export default function Preferences() {
622622
<legend className="preference__warning">
623623
<a
624624
target="_blank"
625-
rel="noreferrer"
625+
rel="noopener noreferrer"
626626
href={`https://${
627627
versionInfo.isVersion2 ? 'beta.' : ''
628628
}p5js.org/reference/p5.sound`}

client/modules/IDE/components/QuickAddList/QuickAddList.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const Item = ({ isAdded, onSelect, name, url }) => {
3737
className="quick-add__item-view"
3838
to={url}
3939
target="_blank"
40+
rel="noopener noreferrer"
4041
onClick={(e) => e.stopPropagation()}
4142
>
4243
{t('QuickAddList.View')}

client/modules/IDE/components/show-hint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ ${
285285
p5
286286
? `<a href="https://p5js.org/reference/p5/${
287287
typeof p5 === 'string' ? p5 : name
288-
}" role="link" onclick="event.stopPropagation()" target="_blank">\
288+
}" role="link" onclick="event.stopPropagation()" target="_blank" rel="noopener noreferrer">\
289289
<span class="hint-hidden">open ${name} reference</span>\
290290
<span aria-hidden="true">&#10132;</span></a>`
291291
: `<span class="no-link-placeholder"><span class="hint-hidden">no reference for ${name}</span></span>`

translations/contributor_docs/ko/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ p5.js 웹 에디터에서 버그를 발견하셨다면, [“이슈” 탭](https
3434
본 프로젝트는 [프로세싱 재단](https://processingfoundation.org/), [뉴욕대 ITP](https://tisch.nyu.edu/itp), [뉴욕시 교육부의 CS4All](http://cs4all.nyc/)에서 후원해주셨습니다.
3535

3636
호스팅과 기술적 지원은 다음 단체들에서 해주셨습니다:<br />
37-
<a href="https://www.browserstack.com/" target="_blank"><img width="100" src="https://user-images.githubusercontent.com/6063380/46976166-ab280a80-d096-11e8-983b-18dd38c8cc9b.png" /></a> <a href="https://mlab.com" target="_blank"><img width="100" src="https://user-images.githubusercontent.com/6063380/46976572-dbbc7400-d097-11e8-89fe-c7bb08ed0775.png" /></a>
37+
<a href="https://www.browserstack.com/" target="_blank" rel="noopener noreferrer"><img width="100" src="https://user-images.githubusercontent.com/6063380/46976166-ab280a80-d096-11e8-983b-18dd38c8cc9b.png" /></a> <a href="https://mlab.com" target="_blank" rel="noopener noreferrer"><img width="100" src="https://user-images.githubusercontent.com/6063380/46976572-dbbc7400-d097-11e8-89fe-c7bb08ed0775.png" /></a>
3838

0 commit comments

Comments
 (0)