mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-31 03:53:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			428 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			428 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| const {ipcRenderer} = require('electron');
 | |
| 
 | |
| class NetworkTroubleshootingView {
 | |
| 	constructor() {
 | |
| 		this.$reconnectButton = document.getElementById('reconnect');
 | |
| 	}
 | |
| 
 | |
| 	init() {
 | |
| 		this.$reconnectButton.addEventListener('click', () => {
 | |
| 			ipcRenderer.send('reload-main');
 | |
| 		});
 | |
| 	}
 | |
| }
 | |
| 
 | |
| window.onload = () => {
 | |
| 	const networkTroubleshootingView = new NetworkTroubleshootingView();
 | |
| 	networkTroubleshootingView.init();
 | |
| };
 |