diff options
author | 2019-10-26 16:03:21 +0200 | |
---|---|---|
committer | 2019-10-26 16:03:21 +0200 | |
commit | 990a430ab1b0ddc31bcf3f433972c5f09c213591 (patch) | |
tree | 73b0669321fc18b3f61da3815451faf8d596bf95 /src/stores | |
parent | Extend debug information (diff) | |
download | ferdium-app-990a430ab1b0ddc31bcf3f433972c5f09c213591.tar.gz ferdium-app-990a430ab1b0ddc31bcf3f433972c5f09c213591.tar.zst ferdium-app-990a430ab1b0ddc31bcf3f433972c5f09c213591.zip |
Fix lint
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/GlobalErrorStore.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stores/GlobalErrorStore.js b/src/stores/GlobalErrorStore.js index dbcc56606..09c215c3e 100644 --- a/src/stores/GlobalErrorStore.js +++ b/src/stores/GlobalErrorStore.js | |||
@@ -15,10 +15,10 @@ export default class GlobalErrorStore extends Store { | |||
15 | window.onerror = this._handleConsoleError.bind(this); | 15 | window.onerror = this._handleConsoleError.bind(this); |
16 | 16 | ||
17 | const origConsoleError = console.error; | 17 | const origConsoleError = console.error; |
18 | console.error = (...args) => { | 18 | console.error = (...errorArgs) => { |
19 | this._handleConsoleError.call(this, args); | 19 | this._handleConsoleError.call(this, errorArgs); |
20 | origConsoleError.apply(this, args); | 20 | origConsoleError.apply(this, errorArgs); |
21 | } | 21 | }; |
22 | 22 | ||
23 | Request.registerHook(this._handleRequests); | 23 | Request.registerHook(this._handleRequests); |
24 | } | 24 | } |
@@ -27,7 +27,7 @@ export default class GlobalErrorStore extends Store { | |||
27 | this.errors.push({ | 27 | this.errors.push({ |
28 | error, | 28 | error, |
29 | url, | 29 | url, |
30 | line | 30 | line, |
31 | }); | 31 | }); |
32 | } | 32 | } |
33 | 33 | ||