Skip to content

Commit

Permalink
Update whatsapp.js
Browse files Browse the repository at this point in the history
Small patch for the Chrome 36+ issue fix.
  • Loading branch information
amanharwara committed Apr 10, 2019
1 parent c6a725c commit 1c33d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/main/js/whatsapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ window.navigator.serviceWorker.getRegistrations().then(registrations => {
});

window.onload = () => {
const titleEl = document.querySelector('.window-title');
const titleEl = document.querySelector('.landing-title');
if (titleEl && titleEl.innerHTML.includes('Google Chrome 36+')) {
window.location.reload();
}
Expand Down

0 comments on commit 1c33d11

Please sign in to comment.