Skip to content

Commit 87ad586

Browse files
authored
Make IE11 consumers life (a little bit) easier
Similarly to #870, provides a pure IE11 compliant includes-like for users that don't polyfill.
1 parent b639bc6 commit 87ad586

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/logger.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ import configuration from './configuration'
33

44
const logger = {
55
debug(...args) {
6-
if (['debug'].includes(configuration.logLevel)) {
6+
if (['debug'].indexOf(configuration.logLevel) !== -1) {
77
console.debug(...args)
88
}
99
},
1010
log(...args) {
11-
if (['debug', 'log'].includes(configuration.logLevel)) {
11+
if (['debug', 'log'].indexOf(configuration.logLevel) !== -1) {
1212
console.log(...args)
1313
}
1414
},
1515
warn(...args) {
16-
if (['debug', 'log', 'warn'].includes(configuration.logLevel)) {
16+
if (['debug', 'log', 'warn'].indexOf(configuration.logLevel) !== -1) {
1717
console.warn(...args)
1818
}
1919
},
2020
error(...args) {
21-
if (['debug', 'log', 'warn', 'error'].includes(configuration.logLevel)) {
21+
if (['debug', 'log', 'warn', 'error'].indexOf(configuration.logLevel) !== -1) {
2222
console.error(...args)
2323
}
2424
},

0 commit comments

Comments
 (0)