aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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