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