mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
fixing accidental usage of .includes
@benlubar
This commit is contained in:
@@ -550,7 +550,7 @@
|
|||||||
value = value ? value.split(' ') : [];
|
value = value ? value.split(' ') : [];
|
||||||
|
|
||||||
['noopener', 'noreferrer'].forEach(function (property) {
|
['noopener', 'noreferrer'].forEach(function (property) {
|
||||||
if (!value.includes(property)) {
|
if (value.indexOf(property) === -1) {
|
||||||
value.push(property);
|
value.push(property);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user