Skip to content

Commit 879e821

Browse files
committed
Use indexof instead of includes
1 parent ccf800b commit 879e821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TheoreticalProperty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TheoreticalProperty {
3131
* @return {object} specificity object with the number of selectors for each component type a,b,c,d
3232
*/
3333
getSpecificity() {
34-
if (stylesheetTypes.includes(this.origin) && this.selector instanceof Selector) {
34+
if (stylesheetTypes.indexOf(this.origin) >= 0 && this.selector instanceof Selector) {
3535
return this.selector.specificity;
3636
} else if (this.origin === 'inline' && this.selector === null) {
3737
return {a: 1, b: 0, c: 0, d: 0};

0 commit comments

Comments
 (0)