aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/GlobalErrorStore.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-26 16:03:21 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-26 16:03:21 +0200
commit990a430ab1b0ddc31bcf3f433972c5f09c213591 (patch)
tree73b0669321fc18b3f61da3815451faf8d596bf95 /src/stores/GlobalErrorStore.js
parentExtend debug information (diff)
downloadferdium-app-990a430ab1b0ddc31bcf3f433972c5f09c213591.tar.gz
ferdium-app-990a430ab1b0ddc31bcf3f433972c5f09c213591.tar.zst
ferdium-app-990a430ab1b0ddc31bcf3f433972c5f09c213591.zip
Fix lint
Diffstat (limited to 'src/stores/GlobalErrorStore.js')
-rw-r--r--src/stores/GlobalErrorStore.js10
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