indexof
This commit is contained in:
parent
f16e19d2b2
commit
88b2f89877
5 changed files with 8 additions and 8 deletions
|
|
@ -43,7 +43,7 @@ export const fileTypeExt = (url) => {
|
|||
}
|
||||
|
||||
export const fileMatchesSomeType = (types, file) =>
|
||||
types.some((type) => fileType(file.mimetype) === type)
|
||||
types.includes(fileType(file.mimetype))
|
||||
|
||||
const fileTypeService = {
|
||||
fileType,
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ export const getCssRules = (rules, debug) =>
|
|||
header,
|
||||
directives,
|
||||
rule.component === 'Text' &&
|
||||
rule.state.indexOf('faint') < 0 &&
|
||||
!rule.state.includes('faint') &&
|
||||
rule.directives.textNoCssColor !== 'yes'
|
||||
? ' color: var(--text);'
|
||||
: '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue