mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	remove unneeded listener
This commit is contained in:
		@@ -182,9 +182,6 @@ class ServerManagerView {
 | 
				
			|||||||
		$webView.addEventListener('dom-ready', () => {
 | 
							$webView.addEventListener('dom-ready', () => {
 | 
				
			||||||
			$webView.focus();
 | 
								$webView.focus();
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
		$webView.addEventListener('focus', () => {
 | 
					 | 
				
			||||||
			console.log('webview focus...', $webView.focus)
 | 
					 | 
				
			||||||
		})
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	registerIpcs() {
 | 
						registerIpcs() {
 | 
				
			||||||
@@ -199,7 +196,7 @@ class ServerManagerView {
 | 
				
			|||||||
				activeWebview.goBack();
 | 
									activeWebview.goBack();
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
		
 | 
					
 | 
				
			||||||
		ipcRenderer.on('focus', () => {
 | 
							ipcRenderer.on('focus', () => {
 | 
				
			||||||
			const activeWebview = document.getElementById(`webview-${this.activeTabIndex}`);
 | 
								const activeWebview = document.getElementById(`webview-${this.activeTabIndex}`);
 | 
				
			||||||
			activeWebview.focus()
 | 
								activeWebview.focus()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user