We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ff0943 commit 7c37ba5Copy full SHA for 7c37ba5
2 files changed
main.js
@@ -172,6 +172,11 @@ function createWindow() {
172
}
173
174
175
+ // Error in Renderer
176
+ ipcMain.on('errorInWindow', async (event, error) => {
177
+ log.error('Window error', error)
178
+ })
179
+
180
// Actions
181
182
ipcMain.on('login-attempt', async (event, loginEmailPw) => {
src/components/Home.js
@@ -30,6 +30,10 @@ class Home extends React.Component {
30
31
componentDidMount() {
32
33
+ window.onerror = function(error, url, line) {
34
+ ipcRenderer.send('errorInWindow', error);
35
+ };
36
37
window.addEventListener('online', this.alertOnlineStatus)
38
window.addEventListener('offline', this.alertOnlineStatus)
39
0 commit comments