mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-10 17:05:47 +00:00
xo: Fix unicorn/prevent-abbreviations.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -411,7 +411,7 @@ app.on('before-quit', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Send crash reports
|
// Send crash reports
|
||||||
process.on('uncaughtException', err => {
|
process.on('uncaughtException', error => {
|
||||||
console.error(err);
|
console.error(error);
|
||||||
console.error(err.stack);
|
console.error(error.stack);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -149,8 +149,8 @@ export default class WebView extends BaseComponent {
|
|||||||
|
|
||||||
this.$el.addEventListener('did-fail-load', event => {
|
this.$el.addEventListener('did-fail-load', event => {
|
||||||
const {errorDescription} = event;
|
const {errorDescription} = event;
|
||||||
const hasConnectivityErr = SystemUtil.connectivityERR.includes(errorDescription);
|
const hasConnectivityError = SystemUtil.connectivityERR.includes(errorDescription);
|
||||||
if (hasConnectivityErr) {
|
if (hasConnectivityError) {
|
||||||
console.error('error', errorDescription);
|
console.error('error', errorDescription);
|
||||||
if (!this.props.url.includes('network.html')) {
|
if (!this.props.url.includes('network.html')) {
|
||||||
this.props.onNetworkError(this.props.index);
|
this.props.onNetworkError(this.props.index);
|
||||||
|
|||||||
@@ -129,9 +129,9 @@ export default class Logger {
|
|||||||
return timestamp;
|
return timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
reportSentry(err: unknown): void {
|
reportSentry(error: unknown): void {
|
||||||
if (reportErrors) {
|
if (reportErrors) {
|
||||||
captureException(err);
|
captureException(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,10 +66,10 @@ async function wait(ms) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Quit the app, end the test, either in success (!err) or failure (err)
|
// Quit the app, end the test, either in success (!err) or failure (err)
|
||||||
async function endTest(app, t, err) {
|
async function endTest(app, t, error) {
|
||||||
await app.client.windowByIndex(0);
|
await app.client.windowByIndex(0);
|
||||||
await app.stop();
|
await app.stop();
|
||||||
t.end(err);
|
t.end(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAppDataDir() {
|
function getAppDataDir() {
|
||||||
|
|||||||
Reference in New Issue
Block a user