mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 16:13:37 +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();
|
|
};
|