Skip to content

Commit

Permalink
replace includes with indexOf for better compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
endorfin committed Aug 9, 2019
1 parent 1d005c4 commit 180d18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Swatches.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default {
type: String,
default: () => 'text',
validator (value) {
return ['text', 'color'].includes(value)
return ['text', 'color'].indexOf(value) !== -1
}
},
inline: {
Expand Down

0 comments on commit 180d18f

Please sign in to comment.