diff options
author | 2019-10-28 09:25:19 +0100 | |
---|---|---|
committer | 2019-10-28 09:25:19 +0100 | |
commit | 508ab1a4a889ec4af083f307fde2bf5ba49c233e (patch) | |
tree | 016e5be062ca41b46040c53aa820f9b4ad1c9c4f | |
parent | Replace remaining & in menu (diff) | |
download | ferdium-app-508ab1a4a889ec4af083f307fde2bf5ba49c233e.tar.gz ferdium-app-508ab1a4a889ec4af083f307fde2bf5ba49c233e.tar.zst ferdium-app-508ab1a4a889ec4af083f307fde2bf5ba49c233e.zip |
Fix lint
-rw-r--r-- | src/stores/GlobalErrorStore.js | 8 |
1 files changed, 4 insertions, 4 deletions
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 { | |||
13 | super(...args); | 13 | super(...args); |
14 | 14 | ||
15 | window.onerror = (...errorArgs) => { | 15 | window.onerror = (...errorArgs) => { |
16 | this._handleConsoleError.call(this, ['error', ...errorArgs]) | 16 | this._handleConsoleError.call(this, ['error', ...errorArgs]); |
17 | }; | 17 | }; |
18 | 18 | ||
19 | const origConsoleError = console.error; | 19 | const origConsoleError = console.error; |
@@ -21,13 +21,13 @@ export default class GlobalErrorStore extends Store { | |||
21 | this._handleConsoleError.call(this, ['error', ...errorArgs]); | 21 | this._handleConsoleError.call(this, ['error', ...errorArgs]); |
22 | origConsoleError.apply(this, errorArgs); | 22 | origConsoleError.apply(this, errorArgs); |
23 | }; | 23 | }; |
24 | 24 | ||
25 | const origConsoleLog = console.log; | 25 | const origConsoleLog = console.log; |
26 | window.console.log = (...logArgs) => { | 26 | window.console.log = (...logArgs) => { |
27 | this._handleConsoleError.call(this, ['log', ...logArgs]); | 27 | this._handleConsoleError.call(this, ['log', ...logArgs]); |
28 | origConsoleLog.apply(this, logArgs); | 28 | origConsoleLog.apply(this, logArgs); |
29 | }; | 29 | }; |
30 | 30 | ||
31 | const origConsoleInfo = console.info; | 31 | const origConsoleInfo = console.info; |
32 | window.console.info = (...infoArgs) => { | 32 | window.console.info = (...infoArgs) => { |
33 | this._handleConsoleError.call(this, ['info', ...infoArgs]); | 33 | this._handleConsoleError.call(this, ['info', ...infoArgs]); |
@@ -38,7 +38,7 @@ export default class GlobalErrorStore extends Store { | |||
38 | } | 38 | } |
39 | 39 | ||
40 | _handleConsoleError(type, error, url, line) { | 40 | _handleConsoleError(type, error, url, line) { |
41 | if (typeof type === "object" && type.length && type.length >= 1) { | 41 | if (typeof type === 'object' && type.length && type.length >= 1) { |
42 | this.messages.push({ | 42 | this.messages.push({ |
43 | type: type[0], | 43 | type: type[0], |
44 | info: type, | 44 | info: type, |