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