mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-03 21:43:18 +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
 | 
			
		||||
process.on('uncaughtException', err => {
 | 
			
		||||
	console.error(err);
 | 
			
		||||
	console.error(err.stack);
 | 
			
		||||
process.on('uncaughtException', error => {
 | 
			
		||||
	console.error(error);
 | 
			
		||||
	console.error(error.stack);
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
@@ -149,8 +149,8 @@ export default class WebView extends BaseComponent {
 | 
			
		||||
 | 
			
		||||
		this.$el.addEventListener('did-fail-load', event => {
 | 
			
		||||
			const {errorDescription} = event;
 | 
			
		||||
			const hasConnectivityErr = SystemUtil.connectivityERR.includes(errorDescription);
 | 
			
		||||
			if (hasConnectivityErr) {
 | 
			
		||||
			const hasConnectivityError = SystemUtil.connectivityERR.includes(errorDescription);
 | 
			
		||||
			if (hasConnectivityError) {
 | 
			
		||||
				console.error('error', errorDescription);
 | 
			
		||||
				if (!this.props.url.includes('network.html')) {
 | 
			
		||||
					this.props.onNetworkError(this.props.index);
 | 
			
		||||
 
 | 
			
		||||
@@ -129,9 +129,9 @@ export default class Logger {
 | 
			
		||||
		return timestamp;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	reportSentry(err: unknown): void {
 | 
			
		||||
	reportSentry(error: unknown): void {
 | 
			
		||||
		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)
 | 
			
		||||
async function endTest(app, t, err) {
 | 
			
		||||
async function endTest(app, t, error) {
 | 
			
		||||
	await app.client.windowByIndex(0);
 | 
			
		||||
	await app.stop();
 | 
			
		||||
	t.end(err);
 | 
			
		||||
	t.end(error);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function getAppDataDir() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user