Skip to content

Commit

Permalink
reloading in window
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-online committed Jun 29, 2019
1 parent 21e1140 commit a3a9b60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ function createBgWindow(cb) {
});
app.bgWindow.loadURL('https://github.com/notifications');
app.bgWindow.on('ready-to-show', () => {
setInterval(() => {
app.bgWindow.loadURL('https://github.com/notifications');
},60000)
cb(true);
});
}
Expand Down
3 changes: 3 additions & 0 deletions Desktop/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ window.onload = function () {
body: n.parentElement.parentElement.innerText.split('/')[0] + '/' + n.parentElement.parentElement.innerText.split('/')[1].split(`
`)[0] + ' - ' + n.getElementsByTagName('a')[0].innerText
});
setTimeout(() => {
window.location.reload();
},60000)
sent.onclick = function() {
ipcRenderer.send('clicked_notif', n.getElementsByTagName('a')[0].href)
}
Expand Down

0 comments on commit a3a9b60

Please sign in to comment.