aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/console.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-29 00:21:22 +1000
committerSam Potts <sam@potts.es>2018-06-29 00:21:22 +1000
commitc99607c85a293a565aa4110a69d04a9e8e9450b6 (patch)
treebe6c2c38a0e6bf4de0a5da076864f1c43f73a1fe /src/js/console.js
parent4f5152f5265efed0a390cbe31bf6b3a174b70813 (diff)
downloadplyr-c99607c85a293a565aa4110a69d04a9e8e9450b6.tar.lz
plyr-c99607c85a293a565aa4110a69d04a9e8e9450b6.tar.xz
plyr-c99607c85a293a565aa4110a69d04a9e8e9450b6.zip
Linting, housekeeping, duration fix (fixes #1074)
Diffstat (limited to 'src/js/console.js')
-rw-r--r--src/js/console.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/console.js b/src/js/console.js
index 7c5ec1b4..e8099569 100644
--- a/src/js/console.js
+++ b/src/js/console.js
@@ -17,10 +17,12 @@ export default class Console {
// eslint-disable-next-line no-console
return this.enabled ? Function.prototype.bind.call(console.log, console) : noop;
}
+
get warn() {
// eslint-disable-next-line no-console
return this.enabled ? Function.prototype.bind.call(console.warn, console) : noop;
}
+
get error() {
// eslint-disable-next-line no-console
return this.enabled ? Function.prototype.bind.call(console.error, console) : noop;