mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	Removed unused checkConnectivity function
This commit is contained in:
		@@ -6,8 +6,7 @@ const fs = require('fs');
 | 
			
		||||
const DomainUtil = require(__dirname + '/../utils/domain-util.js');
 | 
			
		||||
const SystemUtil = require(__dirname + '/../utils/system-util.js');
 | 
			
		||||
const LinkUtil = require(__dirname + '/../utils/link-util.js');
 | 
			
		||||
const {app, dialog, shell} = require('electron').remote;
 | 
			
		||||
const {ipcRenderer} = require('electron');
 | 
			
		||||
const {shell} = require('electron').remote;
 | 
			
		||||
 | 
			
		||||
const BaseComponent = require(__dirname + '/../components/base.js');
 | 
			
		||||
 | 
			
		||||
@@ -116,25 +115,6 @@ class WebView extends BaseComponent {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	checkConnectivity() {
 | 
			
		||||
		return dialog.showMessageBox({
 | 
			
		||||
			title: 'Internet connection problem',
 | 
			
		||||
			message: 'No internet available! Try again?',
 | 
			
		||||
			type: 'warning',
 | 
			
		||||
			buttons: ['Try again', 'Close'],
 | 
			
		||||
			defaultId: 0
 | 
			
		||||
		}, index => {
 | 
			
		||||
			if (index === 0) {
 | 
			
		||||
				this.reload();
 | 
			
		||||
				ipcRenderer.send('reload');
 | 
			
		||||
				ipcRenderer.send('destroytray');
 | 
			
		||||
			}
 | 
			
		||||
			if (index === 1) {
 | 
			
		||||
				app.quit();
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	zoomIn() {
 | 
			
		||||
		this.zoomFactor += 0.1;
 | 
			
		||||
		this.$el.setZoomFactor(this.zoomFactor);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user