Skip to content

Commit 32d7218

Browse files
committed
Fix for Phantom
`includes` is valid ES6 but Phantom doesn't seem to like it: the tests fail with it set. Reverted to the tried and true `indexOf`. All tests are passing. — Elliot Jackson <[email protected]>
1 parent 3c2793d commit 32d7218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes/crate/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default Ember.Route.extend({
1414
const unstableFlags = ['alpha', 'beta'];
1515

1616
return unstableFlags.some((flag) => {
17-
return version.includes(flag);
17+
return version.indexOf(flag) > -1;
1818
});
1919
};
2020

0 commit comments

Comments
 (0)