mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-03 21:43:18 +00:00 
			
		
		
		
	🐛 🔧 linting error fixed
This commit is contained in:
		@@ -148,12 +148,12 @@ function createMainWindow() {
 | 
			
		||||
			allowDisplayingInsecureContent: true,
 | 
			
		||||
			nodeIntegration: false
 | 
			
		||||
		},
 | 
			
		||||
		show:false
 | 
			
		||||
		show: false
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	win.once('ready-to-show', () => {
 | 
			
		||||
		win.show();
 | 
			
		||||
	})
 | 
			
		||||
	});
 | 
			
		||||
	win.loadURL(targetURL(),
 | 
			
		||||
		{
 | 
			
		||||
			userAgent: isUserAgent + ' ' + win.webContents.getUserAgent()
 | 
			
		||||
 
 | 
			
		||||
@@ -34,22 +34,20 @@ function createdomainWindow() {
 | 
			
		||||
 | 
			
		||||
	return domainwin;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Call this window onClick addDomain in tray
 | 
			
		||||
function addDomain() {
 | 
			
		||||
	domainWindow = createdomainWindow();
 | 
			
		||||
	domainWindow.once('ready-to-show', () => {
 | 
			
		||||
		domainWindow.show();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		setTimeout(() => {
 | 
			
		||||
			if (domainWindow!=null) {if (!domainWindow.isDestroyed()) domainWindow.destroy()}
 | 
			
		||||
		}, 15000);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	setTimeout(() => {
 | 
			
		||||
		if (domainWindow !== null) {
 | 
			
		||||
			if (!domainWindow.isDestroyed()) {
 | 
			
		||||
				domainWindow.destroy();
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}, 15000);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// About window
 | 
			
		||||
function createAboutWindow() {
 | 
			
		||||
	const aboutwin = new electron.BrowserWindow({
 | 
			
		||||
@@ -81,7 +79,7 @@ function about() {
 | 
			
		||||
	aboutWindow = createAboutWindow();
 | 
			
		||||
	aboutWindow.once('ready-to-show', () => {
 | 
			
		||||
		aboutWindow.show();
 | 
			
		||||
	})
 | 
			
		||||
	});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
exports = module.exports = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user