fixing accidental usage of .includes

@benlubar
This commit is contained in:
Julian Lam
2018-01-26 13:22:28 -05:00
parent 2e2b97033e
commit 5302e79b56

View File

@@ -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);
}
});