From 508ab1a4a889ec4af083f307fde2bf5ba49c233e Mon Sep 17 00:00:00 2001 From: vantezzen Date: Mon, 28 Oct 2019 09:25:19 +0100 Subject: Fix lint --- src/stores/GlobalErrorStore.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/stores/GlobalErrorStore.js b/src/stores/GlobalErrorStore.js index 0a3e62731..aacaa247f 100644 --- a/src/stores/GlobalErrorStore.js +++ b/src/stores/GlobalErrorStore.js @@ -13,7 +13,7 @@ export default class GlobalErrorStore extends Store { super(...args); window.onerror = (...errorArgs) => { - this._handleConsoleError.call(this, ['error', ...errorArgs]) + this._handleConsoleError.call(this, ['error', ...errorArgs]); }; const origConsoleError = console.error; @@ -21,13 +21,13 @@ export default class GlobalErrorStore extends Store { this._handleConsoleError.call(this, ['error', ...errorArgs]); origConsoleError.apply(this, errorArgs); }; - + const origConsoleLog = console.log; window.console.log = (...logArgs) => { this._handleConsoleError.call(this, ['log', ...logArgs]); origConsoleLog.apply(this, logArgs); }; - + const origConsoleInfo = console.info; window.console.info = (...infoArgs) => { this._handleConsoleError.call(this, ['info', ...infoArgs]); @@ -38,7 +38,7 @@ export default class GlobalErrorStore extends Store { } _handleConsoleError(type, error, url, line) { - if (typeof type === "object" && type.length && type.length >= 1) { + if (typeof type === 'object' && type.length && type.length >= 1) { this.messages.push({ type: type[0], info: type, -- cgit v1.2.3-70-g09d2